[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: obfuscating / protecting LUA code
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 28 Apr 2006 09:20:02 -0300
> - 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!