Compiling Lua or Python script files

I separate my business code into a script. it will be Lua or Python. My question is, my business code written in a script file is viewable by others. Due to the script, the file will not be compiled, which will be opened. Anyone can see it.

How can I hide this? I think that if I use Python, it will be compiled (.pyo), but Lua looks more suitable for me.

+3
source share
4 answers

You can compile Lua scripts with luac:

luac -s -o yourscript.luc yourscript.lua

Using the flag -swill also remove debugging information, which will make it even a little smaller.

+5
source

. . , . , lua, , .

+1

( Lua)

, . .

, , , , luac. , , .

, , , - / , , ​​ , , , .

+1

You can paste the lua code into the executable. Here's a link on how to insert lua in C: http://heavycoder.com/tutorials/lua_embed.php

0
source

All Articles