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.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 Distribution

pyarmor-8.1.dev3.zip (6.3 MB view details)

Uploaded Source

Built Distribution

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

pyarmor-8.1.dev3-py2.py3-none-any.whl (2.3 MB view details)

Uploaded Python 2Python 3

File details

Details for the file pyarmor-8.1.dev3.zip.

File metadata

  • Download URL: pyarmor-8.1.dev3.zip
  • Upload date:
  • Size: 6.3 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-8.1.dev3.zip
Algorithm Hash digest
SHA256 49ff9a6b3cdb89916b5d2b76e0e38e2f6c2409e9ac289589d76fa62add4f7a03
MD5 c73552b1c45b4b0b8162bb17e7a404a0
BLAKE2b-256 92d1ba4c24eed454cc3fa6004b03e22e33fcb7de9a21273945002306b30ea03b

See more details on using hashes here.

File details

Details for the file pyarmor-8.1.dev3-py2.py3-none-any.whl.

File metadata

  • Download URL: pyarmor-8.1.dev3-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 2, 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-8.1.dev3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 667b81d223ec7f922b73aaa47e2c2f6e9df7c7da93d8bd91eba190a29a299310
MD5 0e1a0f5a7e1811eeb8b61e35f6cb9a4a
BLAKE2b-256 b4922c2464ed261c9069da222d9162009a57d5f3c0aee5bae0e4c06153ba7f75

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