Encrypts (and decrypts) a string. To decrypt an encrypted string, use the Decrypt Function.
Encrypt replaces each letter in a string with a different character, including spaces, and then reverses the scrambled string.
Encrypt provides good enough string encryption
Private Function Decrypt1(ByVal encryptedstring)
Dim x, i, tmp
encryptedstring = StrReverse( encryptedstring )
For i = 1 To Len( encryptedstring )
x = Mid( encryptedstring, i, 1 )
tmp = tmp & Chr( Asc( x ) - 1 )
Next
Decrypt = tmp
End Function
Private Function Encrypt1(ByVal string)
Dim x, i, tmp
For i = 1 To Len( string )
x = Mid( string, i, 1 )
tmp = tmp & Chr( Asc( x ) + 1 )
Next
tmp = StrReverse( tmp )
Encrypt = tmp
End Function
Dim x, i, tmp
encryptedstring = StrReverse( encryptedstring )
For i = 1 To Len( encryptedstring )
x = Mid( encryptedstring, i, 1 )
tmp = tmp & Chr( Asc( x ) - 1 )
Next
Decrypt = tmp
End Function
Private Function Encrypt1(ByVal string)
Dim x, i, tmp
For i = 1 To Len( string )
x = Mid( string, i, 1 )
tmp = tmp & Chr( Asc( x ) + 1 )
Next
tmp = StrReverse( tmp )
Encrypt = tmp
End Function
encryptedstring
or
string
or
string
Views 4,751
Downloads 1,495
CodeID
DB ID
ANmarAmdeen
627
Revisions
v1.0
Wednesday
July
25
2018