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.2

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.2
File Size Uploaded
yccstego-0.1.2.tar.gz 28.4 kB Details

Built distribution (wheel)

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

Total release size: 56.0 kB

Release files / yccstego-0.1.2.tar.gz

Download URL yccstego-0.1.2.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
76c192e7d41a7390666d934caf09c86ed9122fe4dc5c9d5102395b1a3d40628b
BLAKE2b-256 checksum
How to use checksums
059645ab34d1a003989d20ef76c90f196a7137ac371e3e22a6062cdc63c467fb
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.2-py3-none-any.whl

Download URL yccstego-0.1.2-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5192cbe1ebfc461b03f3a114872f291ed30fc6687823ddc182221a962ee94a4a
BLAKE2b-256 checksum
How to use checksums
43bda1b2662feb7dd51a55d2b9685d5e72f4b691d3a1e4966b316c1cd1ea75b1
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

This release

0.1.2 This release

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