How to encrypt Lua codes

I want to protect my Lua codes in my project, I use the Corona SDK.

I saw some lua files messed up like this

https://github.com/ChartBoost/corona-sdk/blob/master/ChartboostSDK/chartboost.lua

Is there any application to protect my source code?

+4
source share
1 answer

The file you mentioned is not encrypted: it only precompiled the bytecode for Lua 5.1. It can be read with luac -l -p (not in the original form, but in the VM instructions, which are probably enough to restore the source). If you want to restore the source, try LuaDec for Lua 5.1 .

You can precompile your code using luac or string.dump .

+4
source

Source: https://habr.com/ru/post/1493997/


All Articles