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.
- 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)
Encode a file :
imaghex encode <input_file> <output_dir>Decode a file :
imaghex decode <input_file.png> <output_dir>Input file secret.mp4 :
🎵🕺
Encoded image secret.png :
- Rust
- Cargo
- Git (optional)
Clone the repository :
git clone https://github.com/Nathan-Etave/ImagHex.git
cd ImagHexor download the source code from the latest release and extract it.
Build the project :
cargo build --releaseThe binary is located in the target/release directory.
