0xSilentPwn/StegoSecure
A Python-based tool for hiding and extracting secret messages within images, audio, and text files. It provides secure and undetectable data embedding techniques for cybersecurity, digital forensics, and privacy protection.
Secure Data Hiding in Images Using Steganography (CLI-Based)
π Introduction
This project provides a CLI-based steganography tool that allows users to hide secret messages inside images securely.
The tool includes both encryption (hiding messages) and decryption (extracting messages) functionalities.
It ensures message security by storing data within pixel values and requiring a password for decryption.
Features
πΉ Hide a secret message inside an image using pixel modifications.
πΉ Retrieve the hidden message with password-based authentication.
πΉ Supports lossless PNG images to prevent data loss.
πΉ Keeps a backup of the original image for later retrieval.
πΉ Command-line interface (CLI) for easy execution.
π Project Structure
stego_project/
βββ stego_encrypt.py # Encrypting messages into images
βββ stego_decrypt.py # Decrypting hidden messages from images
βββ PIC.png # Sample input image
βββ encryptedImage.png # Output image after encryption
βββ decryptedImage.png # Backup of the original image
βββ README.md # Documentation file
βββ .gitignore # Ignore unnecessary files
π Installation
1οΈβ£ Clone the Repository
git clone https://github.com/0xSilentPwn/StegoSecure.git
cd StegoSecure
2οΈβ£ Install Required Dependencies
pip install -r requirements.txt
Usage
π Encrypting a Message into an Image
To hide a secret message inside an image, run:
python stego_encrypt.py
Input Prompts:
Enter the secret message to hide.
Provide a password for encryption.
A new image (encryptedImage.png) containing the hidden message.
A backup of the original image (decryptedImage.png) is saved.
πDecrypting a Message from an Image
To extract a hidden message from an encrypted image, run:
python stego_decrypt.py
Input Prompts:
Enter the encryption password.
Output:
The decrypted message will be displayed in the terminal.
The original image (decryptedImage.png) will be opened if available.
π Notes
Use PNG images to prevent data loss due to compression.
Ensure the correct password is provided during decryption.
If the message extraction fails, verify that the correct encrypted image and password are used.
β οΈ Disclaimer
This project is intended for educational and ethical cybersecurity purposes only.
The creator is not responsible for any misuse or illegal activities performed using this tool.
Always ensure you have proper authorization before testing or using steganography and encryption techniques.
License
This project is licensed under the MIT License.