Skip to main content

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 script 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.15

  • 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

pyarmor_cli-9.2.5.tar.gz (778.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyarmor_cli-9.2.5-py3-none-any.whl (784.3 kB view details)

Uploaded Python 3

pyarmor_cli-9.2.5-2-py3-none-any.whl (784.3 kB view details)

Uploaded Python 3

File details

Details for the file pyarmor_cli-9.2.5.tar.gz.

File metadata

  • Download URL: pyarmor_cli-9.2.5.tar.gz
  • Upload date:
  • Size: 778.3 kB
  • 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

Hashes for pyarmor_cli-9.2.5.tar.gz
Algorithm Hash digest
SHA256 6d24fc8eb827e4c160dc27af02cb201221d425fe4dccce5d797e063046fa55c2
MD5 29e05e1aa791df3512c250b0dddbd359
BLAKE2b-256 a322e3d62d8b0e82d53ce338476bc19c26a866f22913064db740fde172664b67

See more details on using hashes here.

File details

Details for the file pyarmor_cli-9.2.5-py3-none-any.whl.

File metadata

  • Download URL: pyarmor_cli-9.2.5-py3-none-any.whl
  • Upload date:
  • Size: 784.3 kB
  • 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

Hashes for pyarmor_cli-9.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cc86bbd2c4e6fe56de0a06c3750c48aa38b05752e201389af58ec351dda45f33
MD5 d65c355ac7f269375d295e962e895a1b
BLAKE2b-256 54ef1676c9e30f3369cd061d6173780b1d09d3bf585b6cb9526602215a13dd0a

See more details on using hashes here.

File details

Details for the file pyarmor_cli-9.2.5-2-py3-none-any.whl.

File metadata

  • Download URL: pyarmor_cli-9.2.5-2-py3-none-any.whl
  • Upload date:
  • Size: 784.3 kB
  • 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

Hashes for pyarmor_cli-9.2.5-2-py3-none-any.whl
Algorithm Hash digest
SHA256 32b3dd887a7679d76ec2198d24ba69e0a35f9316a1d93aa70d1898eda5aaa0fa
MD5 de8c3abc55d0c10d4ba35cb540f45126
BLAKE2b-256 0818c315464750f6a64d477fa8540922ae8a58eaf61282b1ea90cc15eac55288

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page