- Get a copy of the Lua binaries from http://www.lua.org/download.html If you're running Windows, I'd recommend these binaries.
- Extract the files somewhere convenient.
- Put your super-amazing-and-really-secret source code into the folder.
- Open up a command prompt in the directory with the exe files. On Windows, hold down shift and right click in any empty space in the folder and select "Open command window here"
- If your "luac__.exe" file is "luac52.exe" and your code is called "helloworld.lua", then run
luac52.exe -o helloworld.bin helloworld.lua
- Magic! If you open up helloworld.bin on one of your computers, it runs fine, but if you open it up in notepad (or something), it's incomprehensible.
- Now noone2 can steal your code!
2Okay, it's not actually irreversible. If someone was determined, they could reverse the compilation and steal your code anyway, but at least it stops some people!