Function SimpleEncrypt(strData)
Dim x, z, t
For z = 1 To Len(strData)
t = ""
t = Hex((Asc(Mid(strData, z, 1)) Xor (z Mod 256)))
If (Asc(Mid(strData, z, 1)) Xor (z Mod 256)) < 16 Then
t = "0" & t
End If
x = x & t
Next
SimpleEncrypt = strReverse(x)
End Function
Function SimpleDecrypt(x)
Dim z, t, y
x= strReverse(x)
For z = 1 To Len(x) Step 2
t = (Mid(x, z, 2))
y = y & Chr((CLng("&h" & t)) Xor (Len(y) + 1) Mod 256)
if Err.Number > 0 then
SimpleDecrypt = ""
exit function
end if
Next
SimpleDecrypt = y
End Function