Skip to main content

pyencrypt3

简介

将python代码一键加密为pyc/so或pyd。支持单个文件加密,整个项目加密。

安装

pip install pyencrypt3

使用方法

命令行方法

pyencrypt3 -i "xxx project dir" [-o output dir]

引入方法

from pyencrypt3.encrypt_py import start_encrypt

start_encrypt('path')

参数说明:

-i | --input_file_path    待加密文件或文件夹路径,可是相对路径或绝对路径

-o | --output_file_path   加密后的文件输出路径,默认在input_file_path下创建dist文件夹,存放加密后的文件

-I | --ignore_files       不需要加密的文件或文件夹,逗号分隔

-m | --except_main_file   不加密包含__main__的文件(主文件加密后无法启动), 值为0、1。 默认为0

-p | --pyc   编译为pyc格式,值为0、1。 默认为0



加密后的文件默认存储在 dist/project_name/ 下

Metadata

Release files for pyencrypt3 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pyencrypt3 1.0.3
File Interpreter ABI Platform Actions
pyencrypt3-1.0.3-py3-none-any.whl Python 3 none any Details for pyencrypt3-1.0.3-py3-none-any.whl

Release files / pyencrypt3-1.0.3-py3-none-any.whl

Download URL pyencrypt3-1.0.3-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b281c308b632396bbbd82227b7b76ea4acdebf46cc7edd6fe8b04eb17292262f
BLAKE2b-256 checksum
How to use checksums
b5715f341c99788cd6c8b88fc1ef9ef2fdd94428e180714e71dfa64dc2f4f3b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for pyencrypt3 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page