Metadata-Version: 2.4
Name: jh_pyenc
Version: 0.0.3
Summary: Python代码处理工具 - 简单加密处理
Author: JiJiahui
Author-email: tn-jh@foxmail.com
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.7
Description-Content-Type: text/plain
License-File: LICENSE
Requires-Dist: cryptography>=3.4.7
Requires-Dist: cython>=0.29
Requires-Dist: setuptools>=45
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# jh_pyenc - Python Code Processing Tool (Ultimate Hardened Edition)

## Installation
```bash
pip install jh_pyenc
```

## Dependencies
- cryptography
- cython
- setuptools
- C compiler required (Visual Studio Build Tools / Xcode CLT / build-essential)

## Quick Start
```bash
jh_pyenc ./myproject -p "my_password"
```

## Commands
```bash
jh_pyenc <directory> [options]
```

### Options:
| Option | Description |
|--------|-------------|
| `-p, --password` | Password (default: default_key_2024) |
| `--whl` | Package runtime as .whl file |
| `--no-backup` | Do not backup original files |

### Security Options:
| Option | Description |
|--------|-------------|
| `--expire DATE` | Expiration date YYYY-MM-DD |
| `--mac MAC` | Bind to MAC address (can specify multiple times) |
| `--remote URL` | Remote validation URL |
| `--no-anti-debug` | Disable anti-debugging |
| `--no-junk` | Disable junk code insertion |
| `--debug-threshold` | Anti-debugging time threshold (default: 0.3 seconds) |
| `--trap MODE` | Handler mode: random/exit/hang/error/silent |
| `--env-bind` | Enable environment binding |

## Examples
```bash
# Basic processing
jh_pyenc ./myproject -p "secret"

# With expiration
jh_pyenc ./myproject -p "secret" --expire 2025-12-31

# With MAC binding
jh_pyenc ./myproject -p "secret" --mac aa:bb:cc:dd:ee:ff

# Package as wheel
jh_pyenc ./myproject -p "secret" --whl
```

## Important Notes
- Please keep your password safe and secure
- Original files are automatically backed up to `xxx_bak/` directory
- After processing, the corresponding pyruntime is required to run; can be placed in site-packages for convenient access
- This is a simple obfuscation tool and does not meet production-grade security standards

---

## 中文说明

### 安装
```bash
pip install jh_pyenc-0.0.3-py3-none-any.whl
```

### 依赖
- cryptography
- cython
- setuptools
- 需要 C 编译器 (Visual Studio Build Tools / Xcode CLT / build-essential)

### 快速开始
```bash
jh_pyenc ./myproject -p "my_password"
```

### 命令
```bash
jh_pyenc <目录> [选项]
```

### 选项：
| 选项 | 说明 |
|------|------|
| `-p, --password` | 密码 (默认: default_key_2024) |
| `--whl` | 打包运行时为 .whl 文件 |
| `--no-backup` | 不备份原文件 |

### 安全选项：
| 选项 | 说明 |
|------|------|
| `--expire DATE` | 过期日期 YYYY-MM-DD |
| `--mac MAC` | 绑定MAC地址 (可多次指定) |
| `--remote URL` | 远程验证URL |
| `--no-anti-debug` | 关闭反调试 |
| `--no-junk` | 关闭垃圾代码 |
| `--debug-threshold` | 反调试时间阈值 (默认: 0.3秒) |
| `--trap MODE` | 处理模式: random/exit/hang/error/silent |
| `--env-bind` | 启用环境绑定 |

### 示例
```bash
# 基础处理
jh_pyenc ./myproject -p "secret"

# 带过期时间
jh_pyenc ./myproject -p "secret" --expire 2025-12-31

# 绑定MAC地址
jh_pyenc ./myproject -p "secret" --mac aa:bb:cc:dd:ee:ff

# 打包为wheel
jh_pyenc ./myproject -p "secret" --whl
```

### 注意事项
- 请妥善保管处理密码
- 原文件自动备份到 `xxx_bak/` 目录
- 处理后需要相应的 pyruntime 才能运行，可以放到 site-packages 方便调用
- 只是简单的混淆处理，无法达到生产环境的安全水准
