lua-users home
lua-l archive

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




On Fri, Jul 26, 2019 at 4:41 PM Srinivas Murthy <the.srinivas.murthy@gmail.com> wrote:
This topic might have been discussed before.

We have proprietary lua code (along with C/C++ binaries) made available as a self-downloadable package (by our customers) and we need to keep it hidden for various reasons (security, IP protection, etc.).

What is the recommended mechanism in lua for this?

There is a BSD licensed PGP application written in C called NetPGP. I was looking at embedding it and a public key in the Lua interpreter. One can then armor/encode the lua source files (with the private key) and then decode the files before you execute. You could even get creative with NetPGP and make a trial mode license and a paid for license. NetPGP comes with Lua bindings but I couldn't get them to compile (due to my own make incompetence).

It's supposedly portable code but I have never tried compiling it under Windows, just FreeBSD and Ubuntu. It was something I was hoping to put in my WinLua distribution but that's likely a pipe dream.

http://netpgp.com/

For What Its Worth,
Russ