This project is a Python-based OTP (One-Time Password) verification system designed to enhance user authentication via email. It generates a secure 6-digit OTP and sends it to the user's email address for validation. Simple, functional, and ideal for scenarios where basic email-based security is required.
Got it, Nikhil! Here's a clean and informative section you can add to your README.md
to explain your repository structureβtailored to showcase clarity and professionalism:
This repository is neatly organized to support both presentation and implementation of the OTP Verification system:
OTP Verification System Python/
βββ Presentation/
β βββ OTP Verification.pdf
β βͺοΈ Project presentation highlighting objectives, workflow, code walkthrough, and test cases
β
βββ Source File/
β βββ Python_Capstone_Project_iynb.ipynb
β βͺοΈ Jupyter Notebook containing the full implementation of the OTP verification system
β βͺοΈ Includes function definitions, email integration, verification logic, and test scenario outputs
β
βββ README.md
βͺοΈ Professional documentation describing project goals, structure, features, setup, and contact info
- β Random 6-digit OTP generation
- π§ Email delivery using Gmail SMTP
- π User verification with retry attempts
β οΈ Error handling for invalid emails and failed attempts
- Python
- Google Colab / Jupyter Notebook
- SMTP (smtplib)
- email.mime modules
Function Name | Purpose |
---|---|
otp() |
Generates a secure 6-digit OTP |
send_otp_email() |
Sends the OTP to userβs email address |
verify_otp() |
Prompts user to enter OTP and validates input |
main() |
Integrates the process and handles flow control |
- β Scenario 1: Valid email and correct OTP β access granted
- β Scenario 2: Invalid email β email sending fails
- π Scenario 3: Incorrect OTP entered multiple times β access denied
- Crafting real-time email verification logic in Python
- Implementing user input validation and flow control
- Error handling and robustness
- Use of SMTP for secure email communication
Refer to Presentation/OTP Verification.pdf
for a structured walkthrough of the systemβs architecture, code highlights, and test case breakdowns.
Built by Nikhil Karaka, Special thanks to documentation resources that supported SMTP and Python module implementation.
For queries or suggestions, feel free to reach out via email or connect on GitHub.