Python · Security
OTP Verification System
Flask web app that generates time-limited one-time passwords and verifies them, adding an extra authentication layer to logins.
Overview
The OTP Verification System is a web-based authentication system built with Python Flask. It adds a one-time password step to the login flow, so a user needs both their password and a fresh OTP to get in.
Even if a password is leaked, the account stays protected. The same approach is used for payment confirmation, account recovery and two-factor authentication.
Key features
01OTP generationCreates a unique one-time password for each login or transaction.
02Expiry and validationOTPs are checked against a set expiration time.
03Email / SMS deliverySends OTPs over SMTP email, with room for an SMS gateway.
04Two-step loginNeeds both username/password and the OTP to sign in.
05Configurable rulesExpiry times and retry limits can be adjusted.
06Simple interfaceA clean web page for entering and validating the code.
How it works
- Register or log in with username and password.
- Generate an OTP on the server and send it by email.
- Enter the code on the verification page before it expires.
- Verify and grant access, or reject expired or wrong codes.
Use cases
- Secure login for web and mobile apps
- Payment and transaction verification
- Account recovery and password reset
- Two-factor authentication (2FA)
Contact
Let’s build something great together
Have a project, a role or just an idea? Send a message and I’ll get back to you soon.
Send a message
Your message comes straight to my inbox. I usually reply within a day or two.
