--v0.0.2 fixed a bug
local wow = {
string.sub,
table.concat,
string.char,
string.byte,
string.gmatch,
table.insert,
tonumber,
tostring,
}
function BESTencrypting(text)
local tablet = {}
local f = ""
for i=1,#text do
local fun = wow[1](text,i,i)
tablet[i] = ((wow[4](fun)) + i) % 255
end
for i,v in pairs(tablet) do
f = f.."/"..wow[8](tablet[i])
end
return f.."/"
end
function BESTdecoding(text)
local tablet = {}
local f = ""
for v in wow[5](text, "[^/]+") do
wow[6](tablet,v)
end
for i,v in pairs(tablet) do
f = f .. wow[3](wow[7](v-i) % 255 )
end
return f
end
local Encoded = BESTencrypting("fun")
print(Encoded)
print(BESTdecoding(Encoded))