This project provides a steganography tool for encoding text into images and decoding text from images. The tool is implemented in Python and uses the PyQt5 library for the graphical user interface (GUI). The encoding process modifies the least significant bits of image pixels to embed the text data, while the decoding process extracts and interprets this data.
- Text Encoding: Encodes text from a file into an image by modifying the least significant bits of the image pixels.
- Text Decoding: Decodes text from an encoded image by extracting the least significant bits of the image pixels.
- GUI: Provides a user-friendly interface for selecting files and performing encoding and decoding operations.
- Python 3.x
- PyQt5
- Pillow (PIL)
- NumPy
-
Clone the Repository
git clone https://github.com/kubeqer/cipher.git cd cipher -
Install Dependencies
pip install -r requirements.txt
To start the application, run the following command:
python main.py- Launch the application.
- Select the "Encoder" option.
- Enter a positive number for the cycle value.
- Select a text file containing the text to encode.
- Select an image file to embed the text into.
- Click the "Encode" button. The encoded image will be saved and displayed.
- Launch the application.
- Select the "Decoder" option.
- Enter the same positive number used during encoding.
- Select the encoded image file.
- Click the "Decode" button. The decoded text will be displayed in a message box.
- main.py: Entry point of the application.
- encode_decode.py: Contains functions for encoding and decoding text.
- ui.py: GUI components for the encoding functionality and the decoding functionality.
- requirements.txt: Lists the required Python packages.