tfa-cli-tools

CLI tools for common TFA-related operations
git clone git://git.defalsify.org/tfa-cli-tools.git
Info | Log | Files | Refs

otp (135B)


      1 #!/usr/bin/python
      2 
      3 # standard imports
      4 import sys
      5 
      6 # third-party imports
      7 import pyotp
      8 
      9 totp = pyotp.TOTP(sys.argv[1])
     10 print(totp.now())