Welcome to the Image Encryption Tool! This Python program allows users to encrypt and decrypt images using pixel manipulation. By applying a basic mathematical operation (XOR) to each pixel, the program ensures that the image can be securely encrypted and later decrypted using the same key.
The Image Encryption Tool encrypts images by manipulating the pixel values. It uses the XOR operation with a user-defined key to encrypt and decrypt each pixel in the image. This simple yet effective method ensures that the image can be securely encoded and later decoded with the same key.
- Encrypt images using pixel manipulation.
- Decrypt images that were encrypted using the same key.
- Supports any image format supported by the Pillow library (e.g., PNG, JPEG).
- Python 3.x
- Pillow library
- Clone the repository:
git clone https://github.com/Hun33er/PRODIGY_WD_02/image-encryption-tool.git
- Navigate to the project directory:
cd image-encryption-tool
- Install the required library:
pip install pillow
Run the program using Python:
python image_encryption_tool.py
Follow the prompts to encrypt or decrypt an image:
- Type
encrypt
to encrypt an image ordecrypt
to decrypt an image. - Enter the path to the input image.
- Enter the path to save the output image.
- Enter the encryption/decryption key (an integer).
Welcome to the Image Encryption Tool!
Type 'encrypt' to encrypt an image or 'decrypt' to decrypt an image: encrypt
Enter the path to the input image: input.png
Enter the path to save the encrypted image: encrypted.png
Enter the encryption/decryption key (an integer): 123
Image encrypted and saved to encrypted.png
Welcome to the Image Encryption Tool!
Type 'encrypt' to encrypt an image or 'decrypt' to decrypt an image: decrypt
Enter the path to the input image: encrypted.png
Enter the path to save the decrypted image: decrypted.png
Enter the encryption/decryption key (an integer): 123
Image decrypted and saved to decrypted.png
Contributions are welcome! If you have suggestions for improvements or new features, feel free to create a pull request or open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by [Hun33er] as part of the Prodigy Info Tech Internship.
Feel free to customize the README with your personal information, repository URL, and any additional details you find relevant.