Jump to content




Making lua unreadble


  • You cannot reply to this topic
4 replies to this topic

#1 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 20 December 2012 - 05:38 AM

Found this http://mta.dzek.eu/compiler/ thought it may come of use. I think it should work

#2 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 20 December 2012 - 06:01 AM

its the same thing as running luac or string.dump

#3 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 20 December 2012 - 07:11 AM

Ok

#4 AfterLifeLochie

    Wiki Oracle

  • Moderators
  • 480 posts
  • LocationAfterLifeLochie's "Dungeon", Australia

Posted 20 December 2012 - 10:24 AM

As the LuaC format and the general dumping format of Lua is pretty open - in fact, Lua itself is completely open - it is merely a trivial task to convert the bytecode output back into human-readable code. Sure, you can remove the majority of the debug blocks which name the variables, but they can easily be replaced with placeholder-names and the like.

The same goes for Java - you can compile and obfuscate your code to an inch of it's digital life - the fact of the matter is, there are an enormous number of tools out there that will decompile most Java code back to a somewhat-reasonable source, and all the developer need do is refactor the variables to something more sensible.

The only advantage I can see to turning all your code into compiled or obfuscated - or even both - forms is to prevent the users who do not understand the Lua Runtime and it's byte-instructions from reversing said programs. There are some tools to dissect and analyse chunks of Lua bytecode already, and the entire Lua system is open-source. In the digital world, realistically, compilation and obfuscation are really just stopgaps, as anyone can pick up tools and start prodding around in byte-level instructions.

#5 tesla1889

  • Members
  • 351 posts
  • LocationSt. Petersburg

Posted 30 January 2013 - 04:43 PM

sorry to bring back an old thread, but i have to say this:

there is one advantage to precompiling your code.
it takes less time to load than lua source.
just know it's almost insignificant.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users