3 releases
0.5.2 | Jul 11, 2020 |
---|---|
0.5.1 | Jul 10, 2020 |
0.5.0 | Jul 10, 2020 |
#1626 in Encoding
53KB
1K
SLoC
pngcrypt-rs
Installation
cargo install pngme
You also can install the application by to downloading the source code and build locally.
# or through ssh git@github.com:disDeal/pngcrypt-rs.git
git clone https://github.com/disDeal/pngcrypt-rs.git
cd pngcrypt-rs
cargo install --path .
Help
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
Usage
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
Licence
Dependencies
~4MB
~69K SLoC