Skip to content

Secure Multi-Factor Authentication System using Flask, PostgreSQL, and QR Code–based OTP for enhanced user verification.

Notifications You must be signed in to change notification settings

ibrahimcreator/Secure-EAuth-System-With-QR-and-OTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🔐 E-Authentication System Using QR Code and OTP

A secure, modern web application that implements multi-factor authentication (MFA) using Flask, PostgreSQL, and QR Code–based One-Time Passwords (OTP). Built to enhance user verification, data privacy, and session security in digital environments.


📌 Project Overview

This project demonstrates a practical implementation of an advanced authentication workflow combining:

  • 📱 Traditional login with email/password
  • 🧾 QR Code–based OTP verification
  • 🗂️ PostgreSQL for secure data storage
  • 🔐 Flask session management for state persistence

Developed as a proof-of-concept system for enterprise-level security and user access control.


🚀 Key Features

  • 🔑 User Registration and Login

    • Encrypted storage of credentials in PostgreSQL
    • Real-time input validation
  • 📷 QR Code–Based OTP Authentication

    • Dynamic QR code generation using Python's qrcode library
    • OTP generation and verification logic
  • 🧠 Flask-Based Web Application

    • Lightweight backend handling routes, forms, and sessions
    • HTML/CSS frontend with a clean, responsive UI
  • 🔒 Session Management

    • Flask session persistence after login for profile navigation
    • Logout and session expiration handling

🛠️ Tech Stack

  • Backend: Python (Flask)
  • Frontend: HTML5, CSS3
  • Database: PostgreSQL
  • Libraries: qrcode, psycopg2, Flask
  • Tools: Git, GitHub

📁 Project Structure

├── app.py                # Main Flask app
├── templates/            # HTML templates (login, register, profile)
├── static/               # CSS (optional)
├── requirements.txt      # Python dependencies
└── README.md             # Project overview

🧠 What I Learned

  • How to build multi-factor authentication systems
  • Integrating QR code and OTP logic securely
  • Database interaction with PostgreSQL from Flask
  • Managing user sessions and web security flows

👨‍💻 About Me

Hi, I’m SYED IBRAHIM A – a passionate B.Tech CSE Graduate (AI, IBM Certified) dedicated to solving real-world problems through tech. I build full-stack web apps, AI/ML projects, and secure systems.


📜 License

This project is licensed under the MIT License.


Feel free to fork, use, or contribute to this repository. Collaboration and feedback are always welcome!

About

Secure Multi-Factor Authentication System using Flask, PostgreSQL, and QR Code–based OTP for enhanced user verification.

Topics

Resources

Stars

Watchers

Forks