mirror of
https://github.com/kennethreitz/super-sphere.git
synced 2026-06-05 23:20:20 +00:00
13 lines
251 B
Lua
13 lines
251 B
Lua
function b64(name)
|
|
local i = io.popen("base64 " .. name)
|
|
local encoded = i:read("*a")
|
|
i:close()
|
|
|
|
local output = ("local %s =\n%q"):format(name:gsub("%.", "_"), encoded)
|
|
return output
|
|
end
|
|
|
|
for i, v in ipairs(arg) do
|
|
print(b64(v))
|
|
end
|