WIP: Examine develop branch #9

Closed
Kenwood wants to merge 18 commits from develop into master
1 changed files with 15 additions and 0 deletions
Showing only changes of commit 9bb1cf2055 - Show all commits

View File

@ -0,0 +1,15 @@
import time, pyotp
totp = pyotp.TOTP(pyotp.random_base32())
code = totp.now()
for i in range(0,60):
if totp.verify(code):
print(f'{code} verified fine at t+{i}')
else:
print(f'{code} expired at t+{i}')
break
time.sleep(1)