Skip to content

Prathamesh5152/SafePixel---Image-Encryption-using-AES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Absolutely! Here’s the full README content in a single block, ready to copy-paste directly into your README.md file:


# 🛡️ SafePixel – Image Encryption using AES

Secure your images with **SafePixel**, a Flask-based web application that encrypts and decrypts images using the **Advanced Encryption Standard (AES)** algorithm. SafePixel ensures **data confidentiality and integrity** by combining AES encryption with **SHA-256 hashing** for verification.

[View Repository](https://github.com/Prathamesh5152/SafePixel---Image-Encryption-using-AES)

---

## 🚀 Features

- AES-based encryption and decryption for images (`.jpg`, `.jpeg`, `.png`)
- Generates a secure random 16-character AES key for each encryption
- Verifies file integrity using SHA-256 hashing
- Easy-to-use web interface built with Flask
- Download encrypted and decrypted files directly from the browser

---

## ⚙️ Installation

1. **Clone the Repository**
```bash
git clone https://github.com/Prathamesh5152/SafePixel---Image-Encryption-using-AES.git
cd SafePixel---Image-Encryption-using-AES
  1. Create a Virtual Environment
python -m venv venv
venv\Scripts\activate     # Windows
source venv/bin/activate  # Linux/Mac
  1. Install Dependencies
pip install -r requirements.txt
  1. Run the Application
python app.py

Open your browser and navigate to: http://127.0.0.1:5000/


🔐 How It Works

Encryption

  1. Upload an image.
  2. A 16-character AES key is generated.
  3. Image bytes are padded and encrypted using AES.
  4. SHA-256 hash of the original data is appended for integrity check.
  5. Encrypted image is saved in the encrypted/ folder.

Decryption

  1. Upload the encrypted image and enter the AES key.
  2. File is decrypted and verified with SHA-256 hash.
  3. If valid, the decrypted image is saved in the uploads/ folder.

📁 Folder Structure

SafePixel/
│
├── app.py                     # Main Flask application
├── templates/
│   └── index.html             # Web interface
├── uploads/                   # Stores decrypted images
├── encrypted/                 # Stores encrypted images
├── requirements.txt           # Python dependencies
└── README.md                  # Project documentation

⚠️ Security Notes

  • Keep your AES key safe — it is required to decrypt the image.
  • AES encryption ensures high security and performance.
  • SHA-256 ensures the image is not tampered with during storage or transfer.
  • For production, consider proper key management solutions.

🧑‍💻 Author

Prathamesh Salokhe Final-year Computer Engineering Student 💡 Interests: Cybersecurity | Web Development | Cryptography

About

SafePixel is a Flask-based web app that encrypts and decrypts images using the AES (Advanced Encryption Standard) algorithm. It ensures data confidentiality and integrity with SHA-256 hashing, allowing users to securely store, share, and verify images through an easy-to-use web interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors