Skip to content

supriya-2004/Image-Encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Image Encryption Tool

πŸ”’ Problem Statement

Develop a simple image encryption tool using pixel manipulation. The program should allow users to encrypt and decrypt images by modifying pixel values through operations like swapping pixel values or applying basic mathematical transformations to each pixel.

✨ Features

βœ… Encrypts images by altering pixel values.
βœ… Decrypts images back to their original form.
βœ… Uses pixel swapping and mathematical operations for encryption.
βœ… Ensures image security through pixel-level transformations.

πŸš€ Getting Started

πŸ“Œ Prerequisites

Ensure you have Python installed along with the required dependencies. Install the necessary libraries using:

pip install pillow numpy

πŸ› οΈ How It Works

πŸ”Ή Loads the input image and converts it into a NumPy array.
πŸ”Ή Generates a random key of the same dimensions as the image.
πŸ”Ή Uses bitwise XOR (np.bitwise_xor) for encryption and decryption.
πŸ”Ή Saves the encrypted and decrypted images.

πŸ“Œ Notes

⚠️ The encryption method is simple and does not provide high security.
⚠️ The same key is required for decryption, so store it securely.
⚠️ For stronger encryption, consider advanced cryptographic techniques.

πŸ”š Conclusion

This project demonstrates a basic image encryption technique using NumPy and PIL. While it offers a simple way to secure images, it lacks advanced security measures required for real-world applications. For enhanced security, integrating robust cryptographic algorithms like AES or RSA is recommended. πŸš€

About

Cyber Security Project | Pixel Manipulation for Image Encryption

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages