Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Encryption & Decryption Functions. ...
Author:
Gagan Bhargava
E-mail:
Click to e-mail author
Submitted:
10/5/2001
Version:
VB6
Compatibility:
VB6
Category:
Security
Views:
14661
Encryption & Decryption Functions.
Declarations:
'none
Code:
Public Function Encrypt(ByVal Decrypted As String) As String Dim Letter As String Dim i As Integer For i = 1 To Len(Decrypted) Letter = Mid$(Decrypted, i, 1) Mid$(Decrypted, i, 1) = Chr(Asc(Letter) + (4 * i)) Next i Encrypt = Decrypted End Function Public Function Decrypt(ByVal Encrypted As String) As String Dim Letter As String Dim i As Integer For i = 1 To Len(Encrypted) Letter = Mid$(Encrypted, i, 1) Mid$(Encrypted, i, 1) = Chr(Asc(Letter) - (4 * i)) Next i Decrypt = Encrypted End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement