Get Free Synopsis PDF
We will prepare a detailed synopsis for your college submission. Includes problem statement, objectives, DFD, ER diagram, and more.
This project adds a two-factor authentication layer to a Django web application, generating time-based one-time passwords (TOTP) that users verify via an authenticator app or email delivery during login. It implements the standard TOTP algorithm with a shared secret and time-step window, plus backup recovery codes in case the device is unavailable. The project demonstrates how 2FA meaningfully raises the bar against credential-stuffing and password-reuse attacks.
Problem Statement
Password-only authentication is routinely bypassed through leaked credentials and reuse across sites, yet many student projects never implement a second verification factor. Building TOTP-based 2FA from scratch teaches the underlying algorithm rather than just plugging in a library blindly.
Objectives
Study the TOTP algorithm (RFC 6238) and shared-secret provisioning
Implement secret generation and QR code provisioning for authenticator apps
Build login flow requiring both password and OTP verification
Add backup recovery codes for lost-device scenarios
Test against common 2FA bypass pitfalls (time drift, replay)
Modules
Secret Provisioning
Generates a per-user shared secret and QR code for authenticator app setup.
TOTP Verifier
Implements the time-based OTP algorithm with a configurable time-step window.
Login Flow Integration
Extends the Django login view to require OTP verification after password check.
Backup Codes Module
Issues one-time-use recovery codes for cases where the device is unavailable.
Security Logging
Logs 2FA successes, failures, and recovery code usage for audit purposes.
Expected Output
A Django application where login requires both a password and a valid TOTP code, with working QR provisioning and backup recovery codes tested end-to-end.
Future Scope
The system could be extended with WebAuthn/FIDO2 hardware key support as a stronger alternative or complement to TOTP.