A comand line tool to obfuscate python scripts
Project description
Pyarmor is a command line tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.
Key Features
The obfuscated scritpt is still a normal .py script, in most of cases the original python scripts can be replaced with obfuscated scripts seamlessly.
Provide many ways to obfuscate the scripts to balance security and performance
Rename functions/methods/classes/variables/arguments, irreversible obfuscation
Convert part of Python functions to C function, compile to binary by high optimize option, irreversible obfuscation
Bind obfuscated scripts to fixed machine or expire obfuscted scripts
Protect obfuscated scripts by Themida (Only for Windows)
Support Platforms
Python 3.7~3.11
Windows
Many linuxs, include embedded systems
Apple Intel and Apple Silicon
Quick Start
Install:
pip install pyarmor
Obfuscate the script foo.py:
pyarmor gen foo.py
This command generates an obfuscated script dist/foo.py like this:
from pyarmor_runtime import __pyarmor__
__pyarmor__(__name__, __file__, b'\x28\x83\x20\x58....')
Run it:
python dist/foo.py
More Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pyarmor.cli-8.2.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bc2b2f60f2f5f171fb03d9a4063cce12b3b6085835db9361c5dbcdc2fb107e6 |
|
MD5 | 9ea63a22559673cb5aa7c54d803be260 |
|
BLAKE2b-256 | 01020bef1bed1f478499c901f590f5985fa58716b7f566708b28abd3a8b8cdad |