This Python-based Steganography tool allows users to encode a secret message into an image and decode it using a passcode. The application uses the Least Significant Bit (LSB) method for encoding the message into the image. The user interface is built using Tkinter to make the process simple and intuitive.
- Encode Message: Hide a secret message within an image file.
- Decode Message: Retrieve the hidden message from an encoded image using the correct passcode.
- Passcode Protection: The hidden message is encrypted with a passcode for secure access.
- Graphical User Interface: Simple GUI using
Tkinterfor easy interaction. - Supports Various Image Formats: Works with JPG, PNG, and other standard image formats.
To run this project, you need to have the following dependencies installed:
- Python 3.x
Tkinter(usually comes pre-installed with Python)opencv-pythonfor image manipulationnumpyfor efficient array handling
Install the necessary dependencies using pip:
pip install opencv-python numpy- Select an Image: Choose an image to hide the secret message.
- Enter the Message: Type in the message you want to hide inside the image.
- Set a Passcode: Set a passcode to protect the message. Only those with the passcode can decode the message.
- Encode the Message: Click on the "Encode Message" button, and the secret message will be encoded into the image using the Least Significant Bit method.
- Select the Encoded Image: Choose the image where the message was encoded.
- Enter the Passcode: Provide the passcode used during encoding.
- Extract the Message: Click the "Decode Message" button to reveal the hidden message from the image.
- Clone the repository to your local machine:
git clone https://github.com/mr-baraiya/Steganography-Project.git
- Install the required dependencies:
pip install opencv-python numpy
- Run the application:
python main.py
- Launch the Application: Once you run
main.py, the GUI will open. - Select the Mode: Choose either "Encode" or "Decode" mode using the radio buttons.
- For Encoding:
- Browse and select an image.
- Enter the secret message and passcode.
- Click the "Encode Message" button.
- For Decoding:
- Browse and select the encoded image.
- Enter the passcode used for encoding.
- Click "Decode Message" to extract the hidden message.
- Choose an image (
image.jpg). - Enter the message:
This is a secret message!. - Enter a passcode:
1234. - Click "Encode Message" and the encoded image (
encryptedImage.png) will be generated.
- Choose the encoded image (
encryptedImage.png). - Enter the passcode:
1234. - Click "Decode Message" and the hidden message
This is a secret message!will be displayed.
steganography-project/
├── main.py # The main Python file for the application
├── README.md # The project documentation
├── requirements.txt # List of dependencies for the project
├── encryptedImage.png # Encoded image (generated at runtime)
Contributions are welcome! You can fork this repository, make improvements, or submit bug fixes. Please feel free to create a pull request with your changes.
- OpenCV: For image manipulation.
- Tkinter: For building the graphical user interface.
- NumPy: For efficient data handling and manipulation.