ChrisDekker
Newcomer
- Joined
- Sep 9, 2021
- Messages
- 2
- Reaction score
- 0
Hi all,
Having a transfer problem from a python script to lua.
heres the lua script i got so far
Where's my problem, can anybody help me ?
Thank you
Chris
Having a transfer problem from a python script to lua.
heres the lua script i got so far
Lua:
local my_secret_key = 5
function decrypt ( secret_string , secret_number ) do
local result = ""
for x in secret_string do
result = result+chr( ord ( x ) ^ int (secret_number) )
end
return result
end
end
print(my_secret_key, "is my secret key")
print(decrypt("alq%lv%``k%b`m`lh" , my_secret_key ) )
print("is my secret phrase")
Where's my problem, can anybody help me ?
Thank you
Chris