This Python program allows you to encrypt and decrypt images using a pixel-shuffling algorithm. It comes with a Tkinter GUI for a smooth user experience. The tool ensures your images remain secure with a unique key-based encryption process.
- Encrypt Images: Secure your images using a custom pixel-shuffling method.
- Decrypt Images: Restore encrypted images back to their original form.
- User-Friendly GUI: Simple interface to upload and process images.
- Cross-Platform: Works on any system with Python and necessary libraries installed.
- Python 3.x
- Required Libraries:
numpyPillow(PIL)tkinter(comes pre-installed with Python)
-
Clone or Download the Repository
git clone https://github.com/Suroor101/PRODIGY_CS_02.git cd PRODIGY_CS_02 -
Install Required Libraries
pip install numpy pillow
-
Run the Program
python image_encryption.py
- Launch the program.
- Enter an encryption key (a number between 0 and 255).
- Choose to Encrypt or Decrypt an image:
- Click "Encrypt" to secure your image.
- Click "Decrypt" to restore your encrypted image.
- Use the file dialog to select an image file.
- The processed image is saved automatically in the same directory with a modified file name (
_encryptedor_decrypted).
- The same key used for encryption must be used for decryption to restore the original image.
- Supported file formats:
.png,.jpg,.jpeg.