acknowledge
Technical User
I would like to know how to creat a access box which has user name and password in such a manner that many programs have.
Thank you very much.
Thank you very much.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim OriginalHash As String
Dim OriginalSeed As Long
Dim NewHash As String
Dim NewSeed As Long
Private Sub Text1_LostFocus()
OriginalSeed = 0
OriginalHash = ""
For Re = 1 To Len(Text1.Text)
OriginalSeed = OriginalSeed + (Asc(Mid$(Text1.Text, Re, 1)) * (1 ^ (Re - 1)))
Next
a = -Rnd(-1)
Randomize OriginalSeed
For Re = 1 To 255
OriginalHash = OriginalHash & Chr$(Int(90 * Rnd + 33))
Next
End Sub
Private Sub Command1_Click()
NewSeed = 0
NewHash = ""
For Re = 1 To Len(Text3.Text)
NewSeed = NewSeed + (Asc(Mid$(Text3.Text, Re, 1)) * (1 ^ (Re - 1)))
Next
a = -Rnd(-1)
Randomize NewSeed
For Re = 1 To 255
NewHash = NewHash & Chr$(Int(90 * Rnd + 33))
Next
If OriginalHash = NewHash Then
MsgBox "Passwords match"
Else
MsgBox "Incorrect password"
End If
End Sub