lua-users home
lua-l archive

Re: Is obfuscation meaningful way to protect proprietary Lua code ?

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


2013年9月15日 Jayanth Acharya <jayachar88@gmail.com>:
> Based on my reading so far, Lua bytecode can be decompiled, and the only Lua
> obfuscator, which is an online service, doesn't seem to work for the simple
> 5 line Lua script I tried. It it right that obfuscation is then not a
> meaningful way to protect proprietary Lua code and thus a working tool
> doesn't exist to do so ?
You can strip the Lua source from the bytecode. The resulting bytecode can
be disassembled but not decompiled. I've seen Lua packages with strings
defined as a sequence of hex-coded bytes which are turned into functions
by loading them.
You could go further and encrypt those strings, requiring a password to
decrypt.
But really, if protecting proprietary code is you mission in life, Lua is
not the ideal vehicle for you.

AltStyle によって変換されたページ (->オリジナル) /