Skip to content

In the image encryption process, the Python PIL library is used to prompt the user for the image path and encryption key The image is opened in binary mode, and its data is converted to a byte array, where a bitwise XOR operation with the key is performed. The encrypted data is saved, and a completion message is shown.

Notifications You must be signed in to change notification settings

yusufmujawar/PRODIGY_CS_02

Repository files navigation

PRODIGY_CS_02

Task: Pixel Manipulation for Image Encryption & Decryption Date: 10-December-2024

*** WELCOME TO PIXEL MANIPULATION FOR IMAGE ENCRYPTION & DECRYPTION TECHNIQUE ***

In the image encryption process, we use the Python PIL library. The script prompts the user for the image path and encryption key, verifies them, and opens the image in binary read mode. The image data is converted to a byte array, and a bitwise XOR operation is applied using the encryption key. The encrypted byte array is then saved to the file, and a completion message is displayed. For decryption, the same method is applied with the same key, and the decrypted data is saved, confirming the process is complete.

About

In the image encryption process, the Python PIL library is used to prompt the user for the image path and encryption key The image is opened in binary mode, and its data is converted to a byte array, where a bitwise XOR operation with the key is performed. The encrypted data is saved, and a completion message is shown.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages