01-10-2006, 01:14 AM
Quote:.....I you want a simple but more robust encryption algorithm, try the following by Ethan Winer. It's even less code than yours.
Not a very strong encryption, but alright if you want to stop your little brother from changing your settings in photoshop. :wink:
.....
Code:
rem X$ is the string to be encrypted.
rem Password$ is the password.
dim L as integer
dim X as integer
dim Pass as integer
L=len(Password$)
for X = 1 to len(X$)
Pass = asc(mid$(Password$, (X mod L) - L * ((X mod L) = 0), 1))
mid$(X$,X,1) = chr$(asc(mid$(X$,X,1)) xor Pass)
next X