Skip to content

A simple and secure Flask web application that allows users to register and log in using AES-encrypted passwords with protection against SQL injection attacks.

License

amnatariq290/CodeAlpha_-Detecting-Data-Leaks-Using-SQL-Injection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Secure Cloud App – Encrypted Login & Registration System

A secure and beginner-friendly Flask web application for user registration and login, featuring AES password encryption and SQL injection protection. Designed with a beautiful UI and clean code structure – ideal for learning and showcasing secure web development.


πŸ’‘ Features

  • πŸ”‘ Register & Login with encrypted credentials
  • πŸ”’ AES-256 Encryption using Python's cryptography module
  • πŸ›‘οΈ SQL Injection Protection via parameterized queries
  • 🎨 Responsive UI (purple gradient design, mobile friendly)
  • πŸ’½ SQLite database storage
  • ✨ Easy to understand for students and beginners

πŸ–₯️ Screenshots

  • Login Page image

πŸš€ How to Run Locally

  1. Clone the repo
git clone https://github.com/amnatariq290/Secure-Cloud-App-Encrypted-Login-Registration-with-SQL-Injection-Protection.git
cd Secure-Cloud-App-Encrypted-Login-Registration-with-SQL-Injection-Protection
  1. Create virtual environment
python -m venv venv
venv\Scripts\activate    # On Windows
  1. Install dependencies
pip install -r requirements.txt
  1. Generate encryption key
python generate_key.py
  1. Run the app
python app.py
  1. Visit:
    http://localhost:5000

πŸ“ Project Structure

Secure-Cloud-App/
β”‚
β”œβ”€β”€ app.py
β”œβ”€β”€ db.py
β”œβ”€β”€ encryption.py
β”œβ”€β”€ generate_key.py
β”œβ”€β”€ secret.key
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ users.db
β”‚
β”œβ”€β”€ static/
β”‚   └── images/
β”‚       └── bg.jpg
β”‚
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ login.html
β”‚   └── success.html
β”‚
└── README.md

πŸ›  Built With

  • Python 3.x
  • Flask
  • SQLite
  • Cryptography (Fernet)
  • HTML/CSS

πŸ‘©β€πŸ’» Author

Amna Tariq
Computer Engineering Student | Python & Front-End Developer


⭐ Star This Repo

If you found this useful, consider giving it a ⭐ to support my work!

About

A simple and secure Flask web application that allows users to register and log in using AES-encrypted passwords with protection against SQL injection attacks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published