Skip to content

shahdevam8/Secure-web-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Secure Web Application (Flask + JWT)

A secure web application built using Flask (Python) that demonstrates core web security concepts such as authentication, authorization, and secure data storage.
This project is designed for learning and showcasing secure coding practices aligned with the OWASP Top 10.


🎯 Project Objective

To create a simple yet secure web application that implements:

  • User authentication
  • Authorization using JWT tokens
  • Secure password storage
  • SQL injection prevention

πŸš€ Features

  • User Registration and Login
  • JWT-based Authentication
  • Protected Routes requiring authorization
  • Password Hashing (no plaintext passwords)
  • Secure SQLite Storage
  • SQL Injection Prevention
  • Minimal frontend UI for interaction
  • Automatic database initialization

πŸ› οΈ Tech Stack

  • Backend: Flask (Python)
  • Authentication: JWT (Flask-JWT-Extended)
  • Password Security: Werkzeug
  • Database: SQLite
  • Frontend: HTML (Jinja Templates)
  • Security Concepts: OWASP Top 10

🧠 Skills Learned

  • Web security fundamentals
  • Secure coding practices
  • Authentication & authorization
  • JWT token handling
  • Password hashing
  • SQL injection prevention
  • OWASP Top 10 awareness

πŸ“ Project Structure

β”œβ”€β”€ app.py # Main Flask application β”œβ”€β”€ requirements.txt # Python dependencies β”œβ”€β”€ database.db # SQLite database (auto-created, NOT pushed to GitHub) β”œβ”€β”€ templates/ # HTML templates β”‚ β”œβ”€β”€ index.html β”‚ β”œβ”€β”€ register.html β”‚ β”œβ”€β”€ login.html β”‚ └── profile.html └── venv/ # Virtual environment


βš™οΈ Setup & Installation

πŸͺŸ Windows (PowerShell)

python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
python app.py

About

Secure Flask web application implementing JWT authentication, authorization, password hashing, and SQL injection prevention.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors