I already know that modern exploits can view a version of client-sided code that functions similar to the original. I decided to make a module script anyway, it prevents newbie exploiters from breaching remote security.
local module = {}
module.__index = module
function module.encode(str)
local fin = {}
if type(str) == "string" then
for i = 1,#str do
local add = string.sub(str,i,i)
local adda = string.byte(add)/6.9848684798687548094756
table.insert(fin,#fin+1,adda)
end
end
return fin
end
function module.decode(str)
local fin = ""
if type(str) == "table" then
for i,v in ipairs(str) do
local new = v*6.9848684798687548094756
local add = string.char(new)
local adda = fin..add
fin = adda
end
end
return fin
end
return module
Are there any better methods of encryption that I don’t know of?
You can always swap things with a key and then translate it into another language like Japanese. Also for every second character you can insert a random letter or number. This means they will have to translate it first and then they will see that its a complete jumble.
To revert it you would just have to translate it back, remove every second character and then use your key to turn it back.