local function bintohex(s)
return (s:gsub('(.)', function(c)
return string.format('%02x', string.byte(c))
end))
end
function encode(str)
gb = {str:byte(1,-1)}
for i = 1, #gb do
gb[i] = (gb[i] - 100) % 256
end
return "{"..table.concat(gb, ",").."}"
end
local function stringtohex (str)
return (string.gsub(str, '.', function (c)
return string.format('%02X', string.byte(c))
end))
end
local data = gg.prompt({"Add Script"},{"/sdcard/Enc"},{"file"})[1]
if data == nil then return end
io.open(data, "r"):read("*a")
-----local source = io.read("*a")
----io.close()
local menu = gg.choice({
"🔢 Function Enc",
"🔠 String to Hex",
"🔢 Bin To Hex ",
}, nil, '')
local func = menu == 1 and encode or menu == 2 and stringtohex or menu == 3 and bintohex or os.exit()
io.open(data..".🗂Hex.lua","w"):write(func(data)):close()
return (s:gsub('(.)', function(c)
return string.format('%02x', string.byte(c))
end))
end
function encode(str)
gb = {str:byte(1,-1)}
for i = 1, #gb do
gb[i] = (gb[i] - 100) % 256
end
return "{"..table.concat(gb, ",").."}"
end
local function stringtohex (str)
return (string.gsub(str, '.', function (c)
return string.format('%02X', string.byte(c))
end))
end
local data = gg.prompt({"Add Script"},{"/sdcard/Enc"},{"file"})[1]
if data == nil then return end
io.open(data, "r"):read("*a")
-----local source = io.read("*a")
----io.close()
local menu = gg.choice({
"🔢 Function Enc",
"🔠 String to Hex",
"🔢 Bin To Hex ",
}, nil, '')
local func = menu == 1 and encode or menu == 2 and stringtohex or menu == 3 and bintohex or os.exit()
io.open(data..".🗂Hex.lua","w"):write(func(data)):close()
Forwarded from Channel 🇮🇩 (XA404 [Pensi] 2020,06,12 - 2021,01,08)
China V4 Encryption.lua
2.9 KB
Join for more fak : @OfficialEncryptLuaGG