ShadowForum
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Where Dreams Come True
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Password/Key Quality

Go down 

Was This Useful?
Yes
Password/Key Quality I_vote_lcap0%Password/Key Quality I_vote_rcap
 0% [ 0 ]
No
Password/Key Quality I_vote_lcap0%Password/Key Quality I_vote_rcap
 0% [ 0 ]
Its Alright
Password/Key Quality I_vote_lcap100%Password/Key Quality I_vote_rcap
 100% [ 1 ]
Total Votes : 1
 

AuthorMessage
Guest
Guest




Password/Key Quality Empty
PostSubject: Password/Key Quality   Password/Key Quality Icon_minitimeTue Apr 22, 2008 5:44 pm

PQuality
'-----------------------------------------------------'
' Quality For Checking Passwords '
' Written by: Zackery '
' '
' '
'-----------------------------------------------------'
Password/Key Quality checks the quality of your key/password after you have confirm
your password and click ok it will tell you your percent

Download Link:
http://www.mediafire.com/?jdfnbdvzfyw


Soucre:
http://www.mediafire.com/?ydgtwdzdmnd



Scanned Link:
http://www.virustotal.com/analisis/952c6994b5d7662f29a45ec548068547



Code:
'-----------------------------------------------------'
'            Quality For Checking Passwords          '
'                Written by: Zackery                '
'                                                    '
'                                                    '
'-----------------------------------------------------'
' The function:
'
' return = KeyQuality(MyPassword)
'
' Where:
' MyPassword (string) the password or key to check
' return    (integer) integer 0-100 quality rating
'
' Example on using the function with a progressbar,
' to check during key entry in the txtKey textbox:
'
' Private Sub txtKey_Change()
' MyForm.ProgressBar1.Value = KeyQuality(MyForm.txtKey.text)
' End Sub
'
' Note: Set the ProgressBar Max value at 100
'
'
'
'
Public Function KeyQuality(ByVal aKey As String) As Integer
' returns an integer value (0 to 100) rating the key quality
Dim QC As Integer
Dim LN As Integer
Dim k As Integer
Dim Uc As Boolean
Dim Lc As Boolean
Dim Wid As Integer
Dim ValidKey As Boolean
LN = Len(aKey)
QC = LN * 4
'check key lenght (at least 5 chars!)
If Len(aKey) < 5 Then KeyQuality = 0: Exit Function
' check for repetitions (abcabc, aaaaa, 121212, etc.)
For Wid = 1 To Int(Len(aKey) / 2)
    ValidKey = False
    For k = Wid + 1 To Len(aKey) Step Wid
        If Mid(aKey, 1, Wid) <> Mid(aKey, k, Wid) Then ValidKey = True: Exit For
    Next
If ValidKey = False Then Exit For
Next
If ValidKey = False Then KeyQuality = 0: Exit Function
'check ucases and lcases
For k = 1 To Len(aKey)
    If Asc(Mid(aKey, k, 1)) > 64 And Asc(Mid(aKey, k, 1)) < 91 Then Uc = True
    If Asc(Mid(aKey, k, 1)) > 96 And Asc(Mid(aKey, k, 1)) < 123 Then Lc = True
Next
If Uc = True And Lc = True Then QC = QC * 1.5
'check numbers
For k = 1 To Len(aKey)
    If Asc(Mid(aKey, k, 1)) > 47 And Asc(Mid(aKey, k, 1)) < 58 Then
        If Uc = True Or Lc = True Then QC = QC * 1.5
        Exit For
        End If
Next
'check signs
For k = 1 To Len(aKey)
    If Asc(Mid(aKey, k, 1)) < 48 Or Asc(Mid(aKey, k, 1)) > 122 Or (Asc(Mid(aKey, k, 1)) > 57 And Asc(Mid(aKey, k, 1)) < 65) Then QC = QC * 1.5: Exit For
Next
If QC > 100 Then QC = 100
KeyQuality = Int(QC)
End Function

Back to top Go down
 
Password/Key Quality
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
ShadowForum :: Shadow Production :: Programs/Projects-
Jump to: