lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If anyone has either root or physical access to the computer, this is hardly a defence.

On Thu, Jan 19, 2017 at 4:07 AM Dirk Laurie <dirk.laurie@gmail.com> wrote:
2017-01-19 11:10 GMT+02:00 Charles Heywood <vandor2012@gmail.com>:

> If you still want to continue with doing this, chances are the best bet is
> to obfuscate the source before compilation and distribution. That would make
> it harder to understand - but not impossible.

On a Un*x system, you can simply mark the executable execute-only.
    chmod go-rw+x myprog.lua

I.e. only the root user can change, copy or reverse-engineer it,
but anyone can run it. You don't even need to compile the Lua
script, a shebang turns any Lua source file into an executable.

--