lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.