Skip to content

etave/ImagHex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImagHex

ImagHex is a simple tool for encoding files into graphical representations of their bytes and vice versa.
The graphical representation is a PNG image where each pixel represents 4 bytes of the file.

Features

  • Encode files into PNG images
  • Decode PNG images back into files
  • Support all input file types (the output is always a PNG image) and sizes (limited by available memory)

Usage

Encode a file :

imaghex encode <input_file> <output_dir>

Decode a file :

imaghex decode <input_file.png> <output_dir>

Example

Input file secret.mp4 :
🎵🕺

Encoded image secret.png :

example.png

Build

Requirements

  • Rust
  • Cargo
  • Git (optional)

Clone the repository :

git clone https://github.com/Nathan-Etave/ImagHex.git
cd ImagHex

or download the source code from the latest release and extract it.

Build the project :

cargo build --release

The binary is located in the target/release directory.

License

MIT

Authors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages