Adigun-Mubaraq / Python-OTP-Verification

A Python project for OTP verification using email authentication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python OTP Verification

This Python project provides a simple and secure way to generate and verify One-Time Passwords (OTP) using email authentication.

Usage

  1. Make sure you have Python installed on your system.

  2. Clone this repository:

    git clone https://github.com/Adigun-Mubaraq/Python-OTP-Verification.git
    
  3. Navigate to the project directory:

    cd Python-OTP-Verification
    
  4. Install the required dependencies:

    pip install smtplib
    
  5. Open the otp_verification.py file and replace the following placeholders with your own information:

    Replace Your Gmail Account with your Gmail account username. Replace Your App Password with the app password generated for your Gmail account. (Note: If you haven't generated an app password, follow the instructions provided by Google to create one.)

  6. Run the script:

    python otp_verification.py
    
  7. Enter your email address when prompted.

  8. Check your email inbox for the OTP sent from your Gmail account.s

  9. Enter the OTP in the command line.

  10. If the OTP is verified successfully, you will see the message "Verified" in the console. Otherwise, you will see the message "Please check your OTP again".

About

A Python project for OTP verification using email authentication.

License:MIT License


Languages

Language:Python 100.0%