PNGHide is a simple tool designed for hiding and extracting data within PNG files securely and effortlessly using Python.
- Data Hiding: Embed images or text into PNG files, concealing sensitive information within innocuous images.
- Data Extraction: Extract hidden data from PNG files, unveiling concealed information with precision.
- Secure Encryption: Utilize cryptographic encryption for secure hiding and extraction of data.
- User-Friendly Interface: Intuitive command-line interface (CLI) and graphical user interface (GUI) for seamless data manipulation.
- Python 3.x
- Tkinter (Python's standard GUI library)
- Clone or download the repository to your local machine.
- Ensure you have Python installed on your system.
- Install dependencies, simply run :
pip install -r requirements.txt
Before using PNGHide, you need to specify the encryption key directly in the main.py
script.
- Open the
main.py
file in a text editor. - Locate the
KEY
variable in the script. - Replace the current value of the
KEY
variable with your desired encryption key.
Embedding an image file into a PNG file:
python main.py embed --input input_image.png --output output_image.png --file data_to_hide.png
Embedding a text file into a PNG file:
python main.py embed --input input_image.png --output output_image.png --file data_to_hide.txt
Extracting hidden data from a PNG file:
python main.py extract --input input_image.png --output extracted_data
- Execute the
gui.py
script: - Click on the "Embed Data" button to hide data within a PNG file or the "Extract Data" button to reveal hidden data.
- Follow the intuitive prompts in the GUI to select input and output files and specify the type of data you're hiding (for embedding).
![]() |
![]() |
If you found this project useful, consider referencing the following resources:
- PNG file format specification: Reference for understanding the structure of PNG files.