I know I can make a Python script a unix executable by using #!/usr/bin/env python
, but if I open the executable with any text editor, the code can be seen by everyone.
I want to compile a python script into a real unix executable, that means that it is compiled to Assembly and nobody can read its code, and decompiling is really hard in Assembly.
I have seen Cython, which compiles Python code to C code, but it makes a .so (shared object) file, and cannot be executed, only imported.
This could also be done if there was a tool that really generates C/C++ code, not a .so, so then, using any compiler such as gcc , compile the .c or .cpp file. If this existed, it could also replace any other python compiler such as py2app
, py2exe
or any like that.
Is there a way to do this?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.