wrote*?
Sidoh, thanks man! Much better than my old integral division encoding.
EDIT -
Heres my code. By no means secure, due to having the key right in it, but you go right ahead and do what you think is best with it. =)
Option Explicit
Public Function Decode(S As String) As String
Dim Ret As String, Key As Byte, Char As Byte, I As Byte
Key = Asc(Mid(S, 1, 1))
For I = 2 To Len(S)
Char = Asc(Mid(S, I, 1))
Char = Char Xor Key
Ret = Ret & Chr(Char)
Next I
Decode = Ret
End Function
Public Function Encode(S As String) As String
Dim Ret As String, Key As Byte, Char As Byte, I As Byte
Randomize: Key = Int(Rnd * &HFF) + 1
Ret = Chr(Key)
For I = 1 To Len(S)
Char = Asc(Mid(S, I, 1))
Char = Char Xor Key
Ret = Ret & Chr(Char)
Next I
Encode = Ret
End Function