This project demonstrates an image steganography tool implemented in Python. It allows users to securely hide and retrieve messages within images using a passcode for encryption and decryption. The application provides a user-friendly Graphical User Interface (GUI) built with tkinter and uses OpenCV for image manipulation. This tool supports standard image formats like .jpg and .png.
- Encrypt and Decrypt Messages: Hide and retrieve secret messages inside images.
- Passcode Protection: Secure encryption and decryption using a passcode.
- GUI Interface: Simple and intuitive interface built with Python's
tkinter. - Cross-Platform: Works on Windows, macOS, and Linux.
- Image File Support: Supports
.jpg,.png,.jpegformats for encryption. - Real-Time Status: Displays status messages for encryption and decryption.
- Programming Language: Python 3.x
- Libraries:
tkinterfor the GUIopencv-python(cv2) for image manipulationPillowfor handling image display in the GUI
- Platform Compatibility: Windows, macOS, Linux
- Development Environment: Any Python IDE or text editor (VS Code, PyCharm, etc.)
- Clone the repository:
git clone https://github.com/MrigenDeka04/Steganography-python.git
- Click "Open Image" to load an image from your computer. This will open a file dialog allowing you to select an image (JPG, PNG, JPEG formats are supported).
- Enter your secret message in the "Enter Secret Message" text field.
- Enter a passcode for encryption in the "Enter Passcode" text field. This passcode will be required later for decryption.
- Click "Encrypt Message" to hide the message inside the image. The encrypted image will be saved as
encryptedImage.jpgand displayed in the GUI.
- Click "Open Image" to load the encrypted image (the one generated after encryption).
- Enter the same passcode used during encryption in the "Enter Passcode" text field.
- Click "Decrypt Message" to reveal the hidden message. If the passcode matches, the decrypted message will be shown in a popup. If the passcode does not match, an error message will be shown.
- The image file must be in a supported format (.jpg, .png, .jpeg).
- The passcode you enter during encryption must be the same passcode used for decryption, ensuring security.
- You can open and decrypt multiple images, but the passcode must match for each one to retrieve the correct hidden message.
- If you want to contribute to this project, feel free to fork it and submit a pull request. Make sure to follow best practices and ensure your code is well-documented.
- This project is open-source and available under the MIT License.



