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.
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.
-
🔑 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
- Dynamic QR code generation using Python's
-
🧠 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
- Backend: Python (Flask)
- Frontend: HTML5, CSS3
- Database: PostgreSQL
- Libraries:
qrcode
,psycopg2
,Flask
- Tools: Git, GitHub
├── app.py # Main Flask app
├── templates/ # HTML templates (login, register, profile)
├── static/ # CSS (optional)
├── requirements.txt # Python dependencies
└── README.md # Project overview
- 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
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.
- 💼 Open to Roles: Software Developer, Backend Engineer, QA, Security Analyst, Technical Support
- 🌍 Location: Chennai, India (Remote/Hybrid/On-site)
- 🔗 GitHub: https://github.com/ibrahimcreator/
This project is licensed under the MIT License.
Feel free to fork, use, or contribute to this repository. Collaboration and feedback are always welcome!