PNGme is a Rust-based command-line utility that allows you to hide text-based messages within PNG image files, utilizing the unused space in the image's metadata. This project demonstrates the power of Rust for system-level programming and showcases how to manipulate image files while maintaining data integrity. With PNGme, you can encode and decode secret messages in PNG images without visibly altering the image itself.
- Text Hiding: Encode any text message into a PNG image without visibly altering the image appearance.
- Decoding: Extract hidden messages from PNG images encoded with PNGme.
- Metadata Utilization: Utilizes unused space in the PNG image's metadata to store hidden messages.
- Command-line Interface: Easy-to-use command-line interface for encoding and decoding messages.
- Further Development: If bigger files are zipped they can be encoded into pngs, if you implement it feel free to send a pr.
Before you start, ensure that you have Rust installed on your system.
-
Clone the PNGme repository:
git clone https://github.com/Dh-rm-k/pngme.git
-
Navigate to the project directory:
cd pngme
-
Build the project:
cargo build --release
PNGme provides two main functionalities: encoding and decoding messages in PNG images.
-
To encode a message in an image:
cargo run encode --path <input-image.png> --message "Your secret message"
-
To decode a message from an image:
cargo run decode --path <input-image.png>
-
Encoding a message:
cargo run encode --path input.png --message "This is a secret message."
-
Decoding a message:
cargo run decode --path output.png
We welcome contributions to PNGme! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature/your-feature-name
. - Make your changes and commit them with descriptive commit messages.
- Push your changes to your branch.
- Submit a pull request to the main repository.
Please ensure that your code follows the project's coding standards and practices. Additionally, write tests for new features or changes you make.
PNGme is released under the MIT License.
Feel free to reach out to us via GitHub Issues or by emailing [email protected] We appreciate your interest and contributions to PNGme!