OTP Verification System Using Python
- Version
- Download 11
- File Size 688.72 KB
- File Count 1
- Create Date 12 August 2025
- Last Updated 12 August 2025
OTP Verification System Using Python
M.NAGA KEERTHI, RAIDU SAI SIRISHA
Assistant Professor, Department Of MCA, MCA Final Semester,
Master of Computer Applications,
Sanketika Vidya Parishad Engineering College, Vishakhapatnam, Andhra Pradesh, India
Abstract:
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
Download