Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyarmor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyarmor

A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.

  • 9.0.6
  • PyPI
  • Socket score

Maintainers
1

Protect Python Scripts By Pyarmor

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:

.. code:: python

from pyarmor_runtime import __pyarmor__
__pyarmor__(__name__, __file__, b'\x28\x83\x20\x58....')

Run it::

python dist/foo.py

More Resources

  • Home <https://github.com/dashingsoft/pyarmor>_
  • Website <http://pyarmor.dashingsoft.com>_
  • 中文网站 <http://pyarmor.dashingsoft.com/index-zh.html>_
  • Issues <https://github.com/dashingsoft/pyarmor/issues>_
  • Documentation <https://pyarmor.readthedocs.io/>_

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc