3个版本
0.5.2 | 2020年7月11日 |
---|---|
0.5.1 | 2020年7月10日 |
0.5.0 | 2020年7月10日 |
#1468 in 编码
53KB
1K SLoC
pngcrypt-rs
安装
cargo install pngme
您还可以通过下载源代码并在本地构建来安装应用程序。
# or through ssh [email protected]:disDeal/pngcrypt-rs.git
git clone https://github.com/disDeal/pngcrypt-rs.git
cd pngcrypt-rs
cargo install --path .
帮助
cargo run -q -- -h
pngme 0.1.0
Command line program that lets you hide secret messages in PNG files
USAGE:
pngme <input> <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
decode Searches for a message hidden in a PNG file and prints
the message if one is found
encode Encodes a message into a PNG file and saves the result
help Prints this message or the help of the given subcommands
print Prints all of the chunks in a PNG file
remove Removes a chunk from a PNG file and saves the result
用法
cargo run -q -- pic.png encode RuST "Lorem ipsum dolor sit amet"
cargo run -q -- pic.png decode RuST
Hidden message in the chunk RuST: 'Lorem ipsum dolor sit amet'
cargo run -q -- pic.png print
File: pic.png, Size: 4533476
(1) Type: IHDR
Data size: 13 bytes
Crc: 3047955392
(2) Type: IDAT
Data size: 4533381 bytes
Crc: 95264671
(3) Type: IEND
Data size: 0 bytes
Crc: 2923585666
(4) Type: RuST
Data size: 26 bytes
Crc: 464893539
cargo run -q -- pic.png remove RuST
许可证
依赖项
~3MB
~52K SLoC