This Python project provides a simple and secure way to generate and verify One-Time Passwords (OTP) using email authentication.
-
Make sure you have Python installed on your system.
-
Clone this repository:
git clone https://github.com/Adigun-Mubaraq/Python-OTP-Verification.git
-
Navigate to the project directory:
cd Python-OTP-Verification
-
Install the required dependencies:
pip install smtplib
-
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.)
-
Run the script:
python otp_verification.py
-
Enter your email address when prompted.
-
Check your email inbox for the OTP sent from your Gmail account.s
-
Enter the OTP in the command line.
-
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".