Page 1 of 3

Lua obfuscation

Posted: Sun Oct 10, 2010 5:21 pm
by leiradel
I've just come across this in the Lua mailing list. It's an utility that changes Lua source code. It transform source code in any combination of:
  1. Minimize: removes white spaces and comments
  2. Uglify:change Lua keywords and strings to single bytes
  3. Compress:run gzip on the file and add Lua code to decompress the file on-the-fly
It even has an option to preserve debug information so that stack traces preserve file names and line numbers!

It looks as a very nice solution to the problem of distributing source code in .love files.

Cheers,

Andre

Re: Lua obfuscation

Posted: Sun Oct 10, 2010 5:26 pm
by zac352
Cool. :U

Re: Lua obfuscation

Posted: Sun Oct 10, 2010 6:06 pm
by Robin
Is there a desquish or should I write one? :P

Re: Lua obfuscation

Posted: Sun Oct 10, 2010 6:29 pm
by leiradel
Robin wrote:Is there a desquish or should I write one? :P
Hehe. There's already one. It's embedded in the resulting file so that it restores the original file but it needs some work to save the restored file so you can actually look at the source code.

Re: Lua obfuscation

Posted: Mon Oct 11, 2010 4:40 am
by Lap
A big lol to all attempts to make Lua close sourced.

Re: Lua obfuscation

Posted: Mon Oct 11, 2010 8:30 am
by nevon
Lap wrote:A big lol to all attempts to make Lua close sourced.
Making a lua script closed source is easy. I just did it last night, actually.

Re: Lua obfuscation

Posted: Mon Oct 11, 2010 8:38 am
by Robin
Lap wrote:A big lol to all attempts to make Lua hidden sourced.
FIFY.

Re: Lua obfuscation

Posted: Mon Oct 11, 2010 5:31 pm
by leiradel
Lap wrote:A big lol to all attempts to make Lua close sourced.
Nothing can be 100% hidden, but as for me, I'll employ any tools that will help me protect my source code.

Perhaps I'm part of a very small group of people here that does not look to LÖVE as a toy engine?

Re: Lua obfuscation

Posted: Mon Oct 11, 2010 5:40 pm
by nevon
leiradel wrote:
Lap wrote:A big lol to all attempts to make Lua close sourced.
Nothing can be 100% hidden, but as for me, I'll employ any tools that will help me protect my source code.

Perhaps I'm part of a very small group of people here that does not look to LÖVE as a toy engine?
I'm quite sure most of us look at it as a game development framework.

Re: Lua obfuscation

Posted: Mon Oct 11, 2010 5:40 pm
by vrld
leiradel wrote:Perhaps I'm part of a very small group of people here that does not look to LÖVE as a toy engine?
Or maybe you are just part of the group that for whatever reasons don't want to create free software. That's fine.
I am part of the group that thinks that trying to "protect" (hide would be the better word) your source code is not worth the effort.