Jump to content

Decode string.char online


Enyby
 Share

Recommended Posts

  • Administrators

If you need read something like that:

string.char(68, 111, 110, 39, 116, 32, 117, 115, 101, 32, 99, 111, 109, 112, 105, 108, 101, 114)

Open https://www.lua.org/cgi-bin/demo

put this code in form, add print around call, like this and run:

print(string.char(68, 111, 110, 39, 116, 32, 117, 115, 101, 32, 99, 111, 109, 112, 105, 108, 101, 114))

You get readable text:

scr_1557471437.png

Link to comment
Share on other sites

  • Administrators

You can use something like this:

local s = gg.prompt({'Code:', 'add print'}, nil, {'text', 'checkbox'})
if s ~= nil then
    if s[2] then s[1] = 'print('..s[1]..')' end
    local run, err = load(s[1])
    if run == nil then print(err) else run() end
end

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.