Skip to content

Latest commit

 

History

History
 
 

OTP Generator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

OTP Generator

Aim

It is a script where we play with One Time Password (OTP).

Purpose

Generating 6 digits random OTP.

Short description of script

  • One-time Passwords (OTP) is a password that is valid for only one login session or transaction in a computer or a digital device.
  • Now a days OTP’s are used in almost every service like Internet Banking, online transactions etc.
  • They are generally combination of 4 or 6 numeric digits.
  • random() function can be used to generate random OTP which is predefined in random library.

Workflow of the Project

  1. Firstly, import the random library.

  2. Now, it will check the conditions passing through loops.

    • generating 6 digits otp one by one.
  3. print the OTP.

Compilation Steps

  1. Run this program in a proper IDE e.g. Pycharm, VScode ,Jupyter notebook etc or any Online compiler like Repelit.

  2. The output will show you.

ScreenShort

image can't displayed
image can't displayed
image can't displayed

Author(s)

Sumit Soni