Skip to content

Instantly share code, notes, and snippets.

@matabares
Created October 2, 2018 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matabares/58da24672c13674b0c782e307cc0784c to your computer and use it in GitHub Desktop.
Save matabares/58da24672c13674b0c782e307cc0784c to your computer and use it in GitHub Desktop.
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