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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pyencrypt3-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyencrypt3-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a23b247d627360aae9608608e82305d1d4ecf10983ff1cfd65e81bd83ab83904 |
|
MD5 | d3b9b7b992115325376480706212a7fc |
|
BLAKE2b-256 | 443109226a34cbdca68aeaec97930d8deba9da83404aa3e199991d77da866795 |