Skip to main content

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

pyarmor-9.0.5.zip (2.8 MB view details)

Uploaded Source

Built Distribution

pyarmor-9.0.5-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file pyarmor-9.0.5.zip.

File metadata

  • Download URL: pyarmor-9.0.5.zip
  • Upload date:
  • Size: 2.8 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

Hashes for pyarmor-9.0.5.zip
Algorithm Hash digest
SHA256 48d69e5bdda2715f60081afb0e3c7f15cceb4bf956dde05c555f3327dcdf4ad8
MD5 a747e4cb99ccf160fbb14695ea126ee3
BLAKE2b-256 c3dd6f068af7067258384edf7e91f182d985d426789ffcd2799d3df31a6083e3

See more details on using hashes here.

File details

Details for the file pyarmor-9.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyarmor-9.0.5-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

Hashes for pyarmor-9.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 71a0519e19efbcffca93ebb0a221497ffb11725d941a250c1a7b0cb69c5fabd7
MD5 76b6b1efbe9d35d72199f8f5eb8ab32d
BLAKE2b-256 9a27500148e5092d5a01acafa123a9cb8809b4dea18a19b3f6875f3d4f98f584

See more details on using hashes here.

Supported by

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