Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function encrypt(toEncrypt, key)
- local intEncrypt = string.byte(toEncrypt)
- math.randomseed(key)
- local encrypted = math.floor(intEncrypt+math.random())
- return encrypted
- end
- function decrypt(toDecrypt, key)
- math.randomseed(key)
- local decrypted = math.floor(toDecrypt-math.random())
- local decryptedS = string.char(decrypted)
- return decryptedS
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement