This Python-based tool allows you to encrypt and decrypt images using pixel manipulation techniques. The program supports two primary methods: channel swapping and mathematical operations. With its intuitive process, users can secure their images and restore them with ease. The tool is designed for simplicity, ensuring that users can handle image encryption and decryption efficiently.
- Encryption Methods:
- Channel Swap: Swaps the red and blue channels of an image for encryption.
- Mathematical Operations: Uses addition, subtraction, multiplication, or division with a key to alter pixel values.
- Decryption Support:
- Reverses the encryption process using the same method and key.
- Batch Processing:
- Automatically processes all images in a specified folder.
- Customizable:
- Users can choose their preferred encryption method, mathematical operation, and key.
- Clone the repository:
git clone https://github.com/your-username/image-encryption-tool.git cd image-encryption-tool - Install the required libraries:
pip install pillow numpy
- Place the images you want to process in the
example_imagesfolder.
```bash
python image_encryption_tool.py
- Choose an action:
encryptordecrypt. - Select the method:
swapormath. - For mathematical operations:
- Specify the operation:
add,subtract,multiply, ordivide. - Provide a key (an integer value).
- Specify the operation:
- Encrypted or decrypted images will be saved in the
output_imagesfolder.
- Input:
example_images/image1.jpg - Method:
math - Operation:
add - Key:
10 - Output:
output_images/encrypted_image1.jpg
- Input:
output_images/encrypted_image1.jpg - Method:
math - Operation:
add - Key:
10 - Output:
output_images/decrypted_image1.jpg
- Add support for more advanced encryption algorithms.
- Implement GUI-based user interaction.
- Enhance performance for larger images or datasets.
This project is licensed under the MIT License.
For questions, suggestions, or collaboration opportunities, reach out:
- Email: shrutisjoshi3110@gmail.com
- LinkedIn: Shruti Joshi
Thank you for using this tool! Happy encrypting! 🚀