百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pyarmor

> 编程语言
开源

用于混淆 Python 脚本、将混淆脚本绑定到固定机器或过期混淆脚本的工具。

5.2K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用于混淆 Python 脚本、将混淆脚本绑定到固定机器或过期混淆脚本的工具。

Pyarmor

Pyarmor is a command-line tool designed for obfuscating Python scripts, binding obfuscated scripts to specific machines, and setting expiration dates for obfuscated scripts.

Key Features

  • Seamless Replacement: Obfuscated scripts remain as standard .py files, allowing them to seamlessly replace the original Python scripts in most cases.
  • Balanced Obfuscation: Offers multiple ways to obfuscate scripts to balance security and performance.
  • Irreversible Obfuscation: Renames functions, methods, classes, variables, and arguments.
  • C Function Conversion: Converts some Python functions to C functions and compiles them into machine instructions using high optimization options for irreversible obfuscation.
  • Script Binding: Binds obfuscated scripts to specific machines or sets expiration dates for obfuscated scripts.
  • Themida Protection: Protects obfuscated scripts using Themida (Windows only).

Supported Platforms

  • Python 2 and Python 3[^1]
  • Windows
  • Various Linux distributions, including embedded systems and Raspberry Pi
  • Apple Intel and Apple Silicon
  • Supported architectures: x86_64, aarch64, armv7, etc.[^2]

For more information, check out the Pyarmor Environments.

[^1]: Some features may be exclusive to Python 3. [^2]: Some features may be exclusive to specific architectures.

Quick start

  1. Install Pyarmor:
pip install pyarmor
  1. Obfuscate the foo.py script:
pyarmor gen foo.py

This command generates an obfuscated script like this at dist/foo.py:

from pyarmor_runtime import __pyarmor__
__pyarmor__(__name__, __file__, b'\x28\x83\x20\x58....')
  1. Run the obfuscated script:
python dist/foo.py

For more information, check out the getting started tutorial.

License

Pyarmor is published as shareware. The free trial version never expires, but has some limitations.

Refer to Pyarmor licenses for information on license types, features, limitations, and purchasing a Pyarmor license.

Please read the Pyarmor EULA.

Getting Help

  • Ask in learning system or look through check list
  • Consult the Pyarmor Documentation.
  • Check the FAQ for answers to common questions.
  • Try the documentation index or the detailed table of contents.
  • If you still can't find the information you need, see asking questions on GitHub.
  • Report bugs following the issue template.
  • For business and security inquiries, send an email to [email protected].

There is also one third-party learn platform

  • Ask Pyarmor Guru, it is a Pyarmor-focused AI to answer your questions (not made by Pyarmor Team, the answer doesn't stand for Pyarmor Team's opinion)

Resources

  • Website
  • Documentation
  • Documentation 8.x
  • Documentation 7.x
  • Pyarmor 9.1 new features
  • Pyarmor Learning System

中文资源

  • Pyarmor 网站
  • Pyarmor 在线文档
  • Pyarmor 8.x 在线文档
  • Pyarmor 7.x 在线文档
  • Pyarmor 9.1 新功能
  • Pyarmor 学习系统

Changelog

Each major version comes with a separate changelog file, detailing fixed issues, new features, and compatibility issues between different versions.

Make sure to read the changelog carefully before upgrading Pyarmor:

  • Pyarmor 8.x Changelog
  • Pyarmor 9.x Changelog

Full changelogs at releases

Upcoming features at Pyarmor Release Plan

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonobfuscateobfuscate-scriptsobfuscationpython

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言