GitHunt
0X

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.

Contributors

0xSilentPwn/StegoSecure | GitHunt