zyc-stego
加解密 + 文件隐写统一命令行工具箱。安装后终端直接使用 zyc 命令。
功能一览
| 类别 | 命令 | 说明 |
|---|---|---|
| 图片隐写 | zyc lsb |
LSB 最低有效位隐写(PNG) |
| 二进制合并 | zyc concat |
秘密文件追加到载体文件尾部(JPG 等) |
| 双重加密隐写 | zyc aeslsb |
AES 加密 + LSB 双重保护 |
| 汉字入画 | zyc unicode |
RGB 通道藏 Unicode 汉字(1 像素 = 1 汉字) |
| 零宽字符 | zyc zwc |
文本藏入零宽字符(肉眼不可见) |
| 音频隐写 | zyc audio |
WAV 采样值 LSB 隐写 |
| 动图隐写 | zyc gif |
GIF 帧间 LSB 隐写 |
| DNA 编码 | zyc dna |
文件转 DNA 碱基序列(FASTA) |
| QR 隐写 | zyc qr rgb / qr alpha |
二维码以低对比度/透明度混入图片 |
| AES 加密 | zyc aes |
AES-256-GCM 对称加解密 |
| RSA 加密 | zyc rsa |
RSA-2048-OAEP 非对称加解密 |
| Web 操作台 | zyc web |
启动本地网页可视化操作台(端口 520) |
安装
电脑 / 常规平台(推荐完整版)
pip install zyc-stego[full]
手机(Termux / Android)
Android 上没有 cryptography / Pillow 的预编译 wheel,不要直接 pip install zyc-stego[full](会触发源码编译并失败)。
正确两步安装:
# 1. 安装纯 Python 版(一定能装成功)
pip install zyc-stego
# 2. 用内置自检工具一键安装系统预编译依赖
zyc doctor
# 检测到 Termux 时会自动执行:
# pkg install -y python-cryptography python-pillow
或者手动执行(效果相同):
pkg update -y
pkg install -y python-cryptography python-pillow
pip install zyc-stego
说明:
zyc-stego本体是纯 Python(无编译),所以手机端pip install zyc-stego一定成功; 图片/加解密功能所需的 C 扩展库由 Termux 官方预编译提供,zyc doctor负责检测和引导安装。
安装后检查
zyc -h # 查看全部用法
zyc doctor # 环境自检:检测各依赖是否就绪,缺失时给出修复命令
快速上手
# AES 加解密
zyc aes keygen -s aes.key
zyc aes encrypt -k aes.key -f report.pdf -o report.aes
zyc aes decrypt -k aes.key -f report.aes -o report_restored.pdf
# RSA 加解密
zyc rsa keygen --bits 4096 --priv priv.pem --pub pub.pem
zyc rsa encrypt --pubkey pub.pem -t "密码:xxx" -o token.rsa
zyc rsa decrypt --privkey priv.pem -f token.rsa
# 把秘密文件藏进载体
zyc lsb encode carrier.png secret.zip stego.png # 图片
zyc audio encode song.wav secret.zip stego.wav # 音乐
zyc gif encode anim.gif secret.zip stego.gif # 动图
zyc concat encode cover.jpg secret.zip stego.jpg # JPG 尾部
# 文本玩法
zyc unicode encode wall.png "海内存知己,天涯若比邻" out.png
zyc zwc encode "正常问候语~" secret.txt fake_mail.txt
zyc dna encode secret.zip secret.fasta
zyc qr rgb encode poster.png "https://a.cn" poster_sign.png -i 6
# 详细手册
zyc help lsb
zyc help aes
# 网页可视化操作台
zyc web # 打开 http://127.0.0.1:520/
注意事项
zyc首次运行会把自身目录自动加入 PATH,方便随时调用。- 建议妥善保管密钥文件(
aes.key/priv.pem),丢失即无法解密。 - Web 操作台默认仅监听本机
127.0.0.1:520。
Metadata
Release files for zyc-stego 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zyc_stego-0.1.3.tar.gz | 75.7 kB | Without provenance | Details for zyc_stego-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zyc_stego-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for zyc_stego-0.1.3-py3-none-any.whl |
Total release size: 152.0 kB
Release files / zyc_stego-0.1.3.tar.gz
| Download URL | zyc_stego-0.1.3.tar.gz |
|---|---|
| Size | 75.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5fd3069b519c91d69ff4944d4016e68914844316ca3172bf5ef0e70f912cb2b
|
|
BLAKE2b-256 checksum How to use checksums |
a6f3092e4605f17711d40aea6d1ba46a1ed7acba6eec6184651fea34f3637afb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / zyc_stego-0.1.3-py3-none-any.whl
| Download URL | zyc_stego-0.1.3-py3-none-any.whl |
|---|---|
| Size | 76.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
846b7527959746fcb1ea1d206e4440a04b8f4de3f6e304cd1c61d907d0a9bd30
|
|
BLAKE2b-256 checksum How to use checksums |
5f4992c4c43a9adddf0c71fbce1682c671199168f82fb5eb84c1499edd36f9ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Security for zyc-stego 0.1.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.