Skip to main content

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

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

在 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.1

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.1
File Size Uploaded
yccstego-0.1.1.tar.gz 28.2 kB Details

Built distribution (wheel)

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

Total release size: 55.7 kB

Release files / yccstego-0.1.1.tar.gz

Download URL yccstego-0.1.1.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1dac0d8541e9a8a7fab0177ce72c227cd3511fcf098ed761d5806bf93a2957e2
BLAKE2b-256 checksum
How to use checksums
3791819359dbf6e2e58032dcad2e75dfe2f2eb9890aa390cd8f2dce060d6fd11
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.1-py3-none-any.whl

Download URL yccstego-0.1.1-py3-none-any.whl
Size 27.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b2a547fbd9ffaec67055796dd63bac5c2acda8bf44a527dd11395264a6ce72d
BLAKE2b-256 checksum
How to use checksums
e8658317d9746f1069ce214a9c3e3a511f6f85e623c7d2e33fba590def98428e
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

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

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