Advertisement
9551

encryption API (bad dont use lol)

Jul 15th, 2021 (edited)
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. local function crypt(key, msg)
  2.     local res = {}
  3.     math.randomseed(key)
  4.     for i = 1, #msg do
  5.         res[i] = bit32.bxor(math.random(0, 255), msg:byte(i))
  6.     end
  7.     return string.char(unpack(res))
  8. end
  9.  
  10. return {crypt = crypt}
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement