Skip to content

Repository files navigation

🔐 Secure Login System

A secure web-based authentication system built using Python Flask, HTML, CSS, JavaScript, and SQLite.

Features

  • User Registration
  • Secure Login & Logout
  • Bcrypt Password Hashing
  • Input Validation
  • SQL Injection Protection
  • Session Management
  • Optional Two-Factor Authentication (2FA)
  • Responsive User Interface

Technologies Used

  • Python
  • Flask
  • SQLite
  • HTML5
  • CSS3
  • JavaScript
  • bcrypt
  • PyOTP

Project Structure

secure-login-system/
│
├── app.py
├── requirements.txt
├── README.md
│
├── templates/
│   ├── base.html
│   ├── index.html
│   ├── register.html
│   ├── login.html
│   ├── dashboard.html
│   ├── enable_2fa.html
│   └── verify_2fa.html
│
└── static/
    ├── style.css
    └── script.js

How to Run

  1. Install dependencies
pip install -r requirements.txt
  1. Run the application
python app.py
  1. Open in browser
http://127.0.0.1:5000

Security

Passwords are securely stored using bcrypt hashing.

SQL queries use parameterized statements.

User input is validated on both client and server sides.

Flask sessions are used for authentication.

Optional TOTP-based 2FA provides additional security.

Requirements

User Registration, User Login, Hashed Passwords, Input Validation, SQL Injection Protection, Session Management, Logout and Optional 2FA.

About

A secure web-based authentication system built with Python Flask, SQLite, HTML, CSS, and JavaScript, featuring bcrypt password hashing, input validation, SQL injection protection, session management, logout and optional 2FA.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages