April 2nd, 2013, 09:58 PM
Hi, I has the following codes to encrypte the password user enter:
For eg. User enter 123456, the password will be encrypte become >?@ABC.
Public Function fnEncrypt(ByVal sString As String, ByVal lLEn As Long) As String
Dim I As Long
Dim NewChar As Long
I = 1
Do Until I = lLEn + 1
NewChar = Asc(Mid(sString, I, 1))
NewChar = ((NewChar - 32 + 13) Mod 95) + 32 'avaible keyboard from ASCII 32 to 126
fnEncrypt = fnEncrypt + Chr(NewChar)
I = I + 1
How can I write my codes to decode it from >?@ABC become 123456?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!