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 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-9.2.6.tar.gz (3.0 MB view details)

Uploaded Source

Built Distributions

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

pyarmor-9.2.6-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

pyarmor-9.2.6-4-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

pyarmor-9.2.6-3-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

pyarmor-9.2.6-2-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file pyarmor-9.2.6.tar.gz.

File metadata

  • Download URL: pyarmor-9.2.6.tar.gz
  • Upload date:
  • Size: 3.0 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.2.6.tar.gz
Algorithm Hash digest
SHA256 98db8a0bda19ff69153bde06a85e544e297f7479be1159caef42d0cee888a7ee
MD5 4a3f15fa2dccff5994218eb7c0e43f24
BLAKE2b-256 bded09703f1799fd10eebf76b465ed13d08506404e328b33e1b97718c57b7702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyarmor-9.2.6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2efb4ba95ab5c5b08bf70698fb4dcbc1e33cde7b71b040ff1ba7f85bfc11af11
MD5 256b1bef6df13ee81145dbbf794dd262
BLAKE2b-256 ab2d0f0611e872cc92cba7c17a7aa3fb5575088bb1411aa9278d885f569d254e

See more details on using hashes here.

File details

Details for the file pyarmor-9.2.6-4-py3-none-any.whl.

File metadata

  • Download URL: pyarmor-9.2.6-4-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.2.6-4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee4b941e65cb8d30510c22c1a6709972babfd59e1f63fa435a36fc97e02791b8
MD5 98ad49f5c6ae6c2417fae4fa2e3d7b32
BLAKE2b-256 fecf98883d2a3e1fb49cd785ae82416eff63131427ec32676c4b76d5af605fcb

See more details on using hashes here.

File details

Details for the file pyarmor-9.2.6-3-py3-none-any.whl.

File metadata

  • Download URL: pyarmor-9.2.6-3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.2.6-3-py3-none-any.whl
Algorithm Hash digest
SHA256 a4476a977d7518772a62a68eb24e4cdcd02a2b08dc8069f4449c07756315a511
MD5 d2eabd50e16708d9d831f9ccdb318415
BLAKE2b-256 f7fb6d8ad502bc29a0cb515d2a2be7553a82284f994838eb5bfb32a650572e5e

See more details on using hashes here.

File details

Details for the file pyarmor-9.2.6-2-py3-none-any.whl.

File metadata

  • Download URL: pyarmor-9.2.6-2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.2.6-2-py3-none-any.whl
Algorithm Hash digest
SHA256 2beb77c1655642f525ec751df4bd8d2d0ca1c9711361f4db47174344625e139c
MD5 cf109d207d5b5a850afd2d9cb3cd4cde
BLAKE2b-256 c243bb9f3de34a25a91c531c7b0a73f96d8f279a434cd96f1c1edbfa7eb72127

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