OTP Verification System Using Python
This OTP verification system provides a straightforward method for authenticating users through email-based verification. It begins by prompting the user to enter their email address, then generates a random six-digit one-time password (OTP). The OTP is "sent" to the user’s email, simulated by a print statement in this implementation. The user is then asked to enter the OTP they received. To enhance security, the system allows a maximum of three attempts to input the correct OTP. If the user enters the correct OTP within these attempts, access is granted, confirming successful verification. If the user fails after three tries, access is denied to prevent unauthorized entry. The system also includes input validation to handle non-numeric or invalid OTP entries gracefully. By combining randomness, limited attempts, and email-based delivery, the system ensures that only legitimate users can complete the verification process. While this example simplifies email sending, the structure can be extended to real-world email services. Overall, this implementation serves as a basic, yet effective, framework for OTP-based user authentication. It highlights essential security practices, including verification, limited retries, and user feedback during the process. Index Terms: OTP, Authentication, Python, Security, Email Verification, Random Number Generation, User Validation
Authors
- M.NAGA KEERTHI
- RAIDU SAI SIRISHA
Publication Details
- Journal
- International Scientific Journal of Engineering and Management
- Published
- 2025-08-12
- DOI
- https://doi.org/10.55041/isjem04968
- Primary Topic
- Power Systems and Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00