A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated 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.12
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 Distribution
Built Distribution
File details
Details for the file pyarmor-9.0.4.zip
.
File metadata
- Download URL: pyarmor-9.0.4.zip
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3a9bd2716a20337e38e214310b3f0f5ebd80e57a8228b4b9030895ccc2b81d |
|
MD5 | a60be8bcd03e1a272e8d794ac0369d2e |
|
BLAKE2b-256 | 154a02059fa03a7861083aed0b3115ea8b23079062b34bce04f7bf19c6741999 |
File details
Details for the file pyarmor-9.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyarmor-9.0.4-py3-none-any.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0e0bf35ec1576458b8f5f2d655e7a6976f8e5ea4bdede2ba2e2a9ba92eb170e |
|
MD5 | 0efe6f200ba5845ffa4d76c0fc5e7293 |
|
BLAKE2b-256 | 5b1c9c656d2bae934207fe7b4cc0e1d6cf14f4bdecf94082d1745398771ceac9 |