Skip to main content

python代码一键加密

Project description

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/ 下

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyencrypt3-1.0.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pyencrypt3-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyencrypt3-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyencrypt3-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b281c308b632396bbbd82227b7b76ea4acdebf46cc7edd6fe8b04eb17292262f
MD5 e93f82337915241c254327570fc2e39b
BLAKE2b-256 b5715f341c99788cd6c8b88fc1ef9ef2fdd94428e180714e71dfa64dc2f4f3b1

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