Skip to content
forked from Gmin2/cli-png

A CLI that lets you hide secret messages in PNG files.

Notifications You must be signed in to change notification settings

ItshMoh/cli-png

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A CLI that lets you hide secret messages in PNG files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%