[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Extending Require
- From: Thomas Lauer <thomas.lauer@...>
- Date: Wed, 09 May 2007 15:39:55 +0100
Luís Santos <firstname.lastname@example.org> 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
And you will have to add an encryption layer to the Lua compiler.