Created
October 2, 2018 10:30
-
-
Save matabares/58da24672c13674b0c782e307cc0784c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ValidateTOTPAuth(code,token): | |
import pyotp | |
totp = pyotp.TOTP("EVVRU7CVMAGTOK6E") | |
print("Current OTP:", totp.now()) | |
def CreateTOTPAuth(code,token): | |
import pyotp | |
print("Token", pyotp.random_base32()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment