Answers for "to generate otp using random() in python"

2

how to make otp generator in python

# Python Program for simple OTP genertaor

import random as r
# function for otp generation
def otpgen():
    otp=""
    for i in range(4):
        otp+=str(r.randint(1,9))
    print ("Your One Time Password is ")
    print (otp)
otpgen()
Posted by: Guest on May-29-2020

Code answers related to "to generate otp using random() in python"

Python Answers by Framework

Browse Popular Code Answers by Language