A lightweight python code protector, makes your python project harder to reverse engineer
pyprotect is a lightweight python code protector, makes your python project harder to reverse engineer.
Only python3.x is supported by current version
mkdir build
cd build && cmake .. && make
And you can find libpyprotect.cpython-PYVERSION-PLATFORM.so in the objs directory.
Command:
python encrypt.py -s SCRIPTS_DIR -e ENTRY_POINT_LIST -o OUTPUT_DIR [--exclude EXCLUDED_SCRIPT_LIST]
You need to put libpyprotect.cpython-PYVERSION-PLATFORM.so into the OUTPUT_DIR as part of your programme.
For security reason you should change the AES key and IV, which is used to encrypt/decrypt the python scripts, to a stronger value. And you may want to change the file extension of encrypted python scripts (which is ".pye" by default).
You can find these macros or variables in config.h and encrypt.py:
You need to change the two files both. Please change the PYPROTECT_KEY and PYPROTECT_IV to a safer value.
pyprotect is provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.