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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

OTP Verification System Using Python

M.NAGA KEERTHI, RAIDU SAI SIRISHA
International Scientific Journal of Engineering and Management
Power Systems and Technologies
article

OTP Verification System Using Python

M.NAGA KEERTHI, RAIDU SAI SIRISHA
article en

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

International Scientific Journal of Engineering and ManagementVol. 04(08)
Openalex Percentile: Top 81%
Power Systems and Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.