initial commit

This commit is contained in:
2024-02-22 13:40:14 -08:00
commit 4a6257ec6c
13 changed files with 310 additions and 0 deletions

14
mfa.py Normal file
View File

@@ -0,0 +1,14 @@
import pyotp
def generateOTP(secret):
totp = pyotp.TOTP(secret)
code = totp.now()
print(code)
return code
# def checkOTP(secret, code):
# totp = pyotp.TOTP(secret)
# return totp.verify(code)
def generateSecret():
return pyotp.random_base32()