add otp gen script

This commit is contained in:
Shihaam Abdul Rahman 2024-10-18 03:02:09 +05:00
commit 07970e4b54
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
env/*

6
generate_totp.py Normal file
View File

@ -0,0 +1,6 @@
import pyotp
import sys
seed = sys.argv[1]
totp = pyotp.TOTP(seed)
print(totp.now())