Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Encrypt a value
- function encrypt(value)
- local x, encrypted
- encrypted = ""
- for x = 1, #value do
- encrypted = encrypted .. string.char(value:byte(x) + 1)
- end
- return encrypted
- end
- -- Decrypt a value
- function decrypt(value)
- local x, decrypted
- decrypted = ""
- for x = 1, #value do
- decrypted = decrypted .. string.char(value:byte(x) - 1)
- end
- return decrypted
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement