Skip to content

Latest commit

 

History

History
87 lines (67 loc) · 1.76 KB

README.md

File metadata and controls

87 lines (67 loc) · 1.76 KB

PNG Message CLI

A command-line tool for encoding and decoding secret messages in PNG files. This tool allows you to add, retrieve, and manage hidden text messages within PNG files without affecting their visual appearance.

Features

  • Encode secret messages into PNG files
  • Decode hidden messages from PNG files
  • Remove hidden messages from PNG files
  • Print information about PNG chunks
  • Preserves original image quality
  • Support for custom chunk types

Installation

Make sure you have Rust installed on your system. If not, install it from rustup.rs.

Clone the repository:

git clone https://github.com/Gmin2/cli-png.git
cd png-cli

Build the project:

cargo build --release

The binary will be available at target/release/pngme

Usage

Encode a Message:

Add a secret message to a PNG file:

pngme encode <FILE_PATH> <CHUNK_TYPE> <MESSAGE> [OUTPUT_FILE]

Example:

pngme encode ./image.png ruSt "This is a secret message!"

With custom output file:

pngme encode ./image.png ruSt "This is a secret message!" -o ./output.png

Decode a Message: Read a hidden message from a PNG file:

pngme decode <FILE_PATH> <CHUNK_TYPE>

Example:

pngme decode ./image.png ruSt

Remove a Message: Remove a hidden message from a PNG file:

pngme remove <FILE_PATH> <CHUNK_TYPE>

Example:

pngme remove ./image.png ruSt

Print Chunk Information: Print information about PNG chunks in a PNG file:

pngme info <FILE_PATH>

Example:

pngme info ./image.png

Test can be run with:

cargo test

Made from this specs inspired from pngme