[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Extending Require
- From: Thomas Lauer <thomas.lauer@...>
- Date: Wed, 09 May 2007 15:39:55 +0100
Luís Santos <lsantos@itquality.com.br> wrote:
> I am trying to extend the new 'modules' feature by allowing the
> 'require' function to load encrypted lua files.
require(), in the end, loads a Lua module via luaL_loadfile() which in
its turn uses something called a lua_Reader (see the doc). This is a
hook where you can do all sorts of things, among them decryption and
decompression.
And you will have to add an encryption layer to the Lua compiler.