[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: obfuscating / protecting LUA code
- From: bert <bestanf@...>
- Date: Fri, 28 Apr 2006 05:37:36 -0700 (PDT)
Just wanted to thank all of you for the great replies :-) power to Lua !
Luiz Henrique de Figueiredo <firstname.lastname@example.org> wrote:
> - You could change the order of the 'RESERVED' enum in llex.h
No, compiled code contains no lexical elements.
You could reorder the VM instructions in lopcodes.h, but then you need
to fix lopcodes.c. It's simpler to swap the position of the B and C
fields in the VM instructions, if you want to go this way.
A much simpler solution is to write your own format for precompiled
code. Simply reorder the items in DumpFunction (and LoadFunction).
Or reorder or alter the items in luaU_header (this seems the simplest solution).
And don't tell anyone!
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.