#Encoding Lua Simple.lua
3.4 KB
Encoding Tool
And
Decoding Tool
😂
And
Decoding Tool
😂
function GetKey(data)
local base = {'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x',
'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x'}
local key = ""
for i=0, 100 do
key = key .. string.char(bit32.bxor(data:sub(i+1,i+1):byte(), base[(i%(#base))+1]:byte()))
end
return key:sub(65,65) .. key:sub(34,64)
end
function Decode(s, key)
local i = 1
s = s:gsub("(.)", function(t)
if (i > key:len()) then
i = 1
end
k = bit32.bxor(t:byte(), key:sub(i,i):byte())
i = i + 1
return string.char(k)
end)
return s
end
local s = io.open(select(1,...), "rb"):read("*a")
local key = GetKey(s)
print("Key found: " .. key)
print("Decoding...")
s = Decode(s, key)
local outfile = io.open(select(1,...) .. ".xor", "wb")
print("Finished!")function Enc(str)
return str:gsub("%l", function(c)
return c.char(c:byte() - 96 + 32)
end):byte(1,-1)
end
print(Enc("hello"))exe_v2.lua
26.7 KB
Test decode ::)
Simple Encoding
string.char(table.unpack({
Simple Encoding
string.char(table.unpack({
Forwarded from 𝐋𝐞𝐚𝐫𝐧 𝐆𝐆 🥀
[Enc]SevenGamingID X-Play._Dec.lua
38.2 KB
Game : ??
Enc : Encryption SevenGamingID
Enc : Encryption SevenGamingID
