python 程序代碼加密
1.python代碼文件進行轉換,
cython myscript.py --embed #把python代碼轉換成c代碼
2.生成後綴爲 .c的c語言的源文件,
gcc編譯成二進制可執行文件:
gcc `python-config --cflags` -o hello hello.c `python-config --ldflags`
gcc `python3-config --cflags` -o hello hello.c `python3-config --ldflags`
ImportError: No module named ‘Crypto’
安裝Crypto
pip3 install -i https://pypi.douban.com/simple pycryptodome