Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Image Encryption Tool πŸ”’

Simple Image Encryption using Pixel Manipulation with Python & PIL


πŸš€ PRODIGY_CS_02

Image Encryption & Decryption Tool (CLI with PIL)

This project was developed as part of my internship at Prodigy InfoTech, under the role of Cyber Security Intern.
The task was to build a basic image encryption/decryption system using Python, utilizing the Pillow (PIL) and NumPy libraries.


✨ Features

  • πŸ” Encrypts and decrypts images using a custom pixel manipulation technique
  • πŸ–ΌοΈ Supports all standard image formats (JPG, PNG, etc.)
  • πŸ” Adjustable encryption key (integer-based)
  • πŸ’‘ Ensures pixel value wrapping with modular arithmetic
  • πŸ“‚ Saves encrypted/decrypted images with descriptive filenames

🧠 How It Works

This tool manipulates the RGB pixel values of an image:

  • Encryption: Adds the key value to each RGB pixel component and takes modulo 256
  • Decryption: Subtracts the same key and applies modulo 256 again
  • Works on any RGB image format and preserves image dimensions and quality

πŸ“Œ Example

Original Image:        myphoto.jpg  
Encryption Key:        50  
Encrypted Output:      myphoto_encrypted.png  
Decrypted Output:      myphoto_decrypted.png

About

A Python-based image encryption and decryption tool that uses pixel-level manipulation with a numeric key. Built as part of a Cyber Security internship at Prodigy InfoTech, the project demonstrates simple cryptographic techniques applied to images using the Pillow and NumPy libraries.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages