Lua obfuscation

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
leiradel
Party member
Posts: 184
Joined: Thu Mar 11, 2010 3:40 am
Location: Lisbon, Portugal

Lua obfuscation

Post 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
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Lua obfuscation

Post by zac352 »

Cool. :U
Hello, I am not dead.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Lua obfuscation

Post by Robin »

Is there a desquish or should I write one? :P
Help us help you: attach a .love.
User avatar
leiradel
Party member
Posts: 184
Joined: Thu Mar 11, 2010 3:40 am
Location: Lisbon, Portugal

Re: Lua obfuscation

Post 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.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: Lua obfuscation

Post by Lap »

A big lol to all attempts to make Lua close sourced.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Lua obfuscation

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Lua obfuscation

Post by Robin »

Lap wrote:A big lol to all attempts to make Lua hidden sourced.
FIFY.
Help us help you: attach a .love.
User avatar
leiradel
Party member
Posts: 184
Joined: Thu Mar 11, 2010 3:40 am
Location: Lisbon, Portugal

Re: Lua obfuscation

Post 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?
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Lua obfuscation

Post 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.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Lua obfuscation

Post 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.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Semrush [Bot] and 11 guests