Encryption

By | 2002-06-01

Encrypts and Decrypts a string easily

Original Author: ND4SPD

API Declarations

Public Function Encrypt(text)
For much = 1 To Len(text)
word = Asc(Mid(text, much, 1)) + 10
c$ = c$ & Chr(word)
Encrypt = c$
Next much

End Function
Public Function Decrypt(text)
For many = 1 To Len(text)
jin = Asc(Mid(text, many, 1)) – 10
d$ = d$ & Chr(jin)
Decrypt = d$
Next many
End Function

Code

'create 3 text boxes
'to encrypt
text2.text=encrypt(text1.text)

'to decrypt
text3.text=decrypt(text2.text)

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.