Skip to main content

yccstego —— YCC(YCbCr) 亮度通道 nsF5 隐写工具

PyPI - Version PyPI - Python PyPI - Downloads GitHub - Release GitHub - License

在 JPEG 压缩域中对 YCbCr 的 Y(亮度)通道量化 DCT 系数 实施 nsF5 伴随式矩阵编码隐写。 自实现标准 JPEG(DCT+量化+Huffman) 编解码,保证量化系数在“保存→解析”后逐位一致, 从而实现压缩域无失真往返嵌入。

安装

# 从 PyPI 安装
pip install yccstego
# 或本地源码开发模式安装
pip install -e .

控制台命令 yccstego 依赖 Python 的 Scripts 目录在 PATH 中; 若未配置可用 python -m yccstego.cli。

用法(CLI)

# 嵌入(消息 UTF-8,中英文均可)
yccstego embed in.png out.jpg -m "你好,ycc stego" -p 3 -k 口令
# 消息超容量时按 UTF-8 安全截断(默认则报错)
yccstego embed small.png out.jpg -m "很长很长的中文…" -p 3 -k 口令 --truncate
# 解码
yccstego extract out.jpg -p 3 -k 口令
# 隐写分析
yccstego analyze out.jpg

结构

  • yccstego/color.py RGB↔YCbCr(BT.601) 与 4:2:0 子采样
  • yccstego/dct.py 8×8 分块 DCT/IDCT、量化表、之字扫描
  • yccstego/huffman.py 标准 JPEG DC/AC Huffman 编解码
  • yccstego/jpeg_codec.py 图像↔量化系数↔.jpg 位流
  • yccstego/nsf5.py Y 亮度量化 DCT 系数上的 nsF5 嵌入/提取(伴随式+湿纸+块置乱+图像哈希自同步)
  • yccstego/steganalysis.py YCC 域盲隐写分析
  • yccstego/cli.py 命令行入口

Metadata

Release files for yccstego 0.1.3

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

Source distribution (sdist)

Source distribution for yccstego 0.1.3
File Size Uploaded
yccstego-0.1.3.tar.gz 41.2 kB Details

Built distribution (wheel)

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

Total release size: 81.2 kB

Release files / yccstego-0.1.3.tar.gz

Download URL yccstego-0.1.3.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3abef4fbad9adadae92342ae78f67963c33e94bb514030f45dd2affec82a4068
BLAKE2b-256 checksum
How to use checksums
554eb97ed5cd00e64b771e5b08f21868a48b3fa5fd873e54801356c28b91fa4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / yccstego-0.1.3-py3-none-any.whl

Download URL yccstego-0.1.3-py3-none-any.whl
Size 40.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3af7ca51545a5b80885edc3a73a183fe6f28496d4901e3a5f9f734214e009feb
BLAKE2b-256 checksum
How to use checksums
7364244bcb22f8c8bdbc6383accb0dab0edb22567fbadf1f2da8604943af824b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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