The obfuscated script is a normal python script. With an extra module
pytransform.py and a few extra runtime files, clear Python scripts can be replaced with obfuscated ones seamlessly
And Pyarmor works well with py2exe, py2app, PyInstaller, cx_Freeze etc.
The byte code of each code object will be obfuscated as soon as code object completed execution, and f_locals of frame is cleared at the same time
It can protected those Python source files distributed as
Pyarmor could pack obfuscated scripts with PyInstaller, py2exe, py2app, cx_Freeze etc.
Pyarmor can set expired date for obfuscated scripts. After that, obfuscated scripts can not be run
Pyarmor can bind obfuscated scripts to serial number of harddisk, mac address of network card, ip address etc..
See a list of Prebuilt Dynamic Library in each platform
The easy way is by pip
pip install pyarmor
Obfuscate all the
.py files in the path
project/src by command
pyarmor obfuscate project/src/hello.py
Run obfuscated script
dist/hello.py as normal Python script
cd ./dist/ python hello.py
Pack obfuscated scripts by command
pyarmor pack -t PyInstaller project/src/hello.py
First get hardware information by command
Then generate a new license with command
Next overwrite default license
Finally run obfuscated script
queens.py with new license
pyarmor licenses \ --expired "2018-12-31" \ --bind-disk "100304PBN2081SF3NJ5T" \ --bind-mac "70:f1:a1:23:f0:94" \ --bind-ipv4 "184.108.40.206" \ customer-jondy
cp licenses/customer-jondy/license.lic ./dist/
cd ./dist/ python queens.py
pyarmor-webui to start web page. Only for basic usage, full features still need shell command way
It will start a light weight web server in localhost, and open a page in web browser.