Last active
September 25, 2018 18:22
-
-
Save paulofreitas/b3a56cfe605a2ccca8bb43e6009dcf3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python3 | |
import argparse | |
from pyotp import totp # pip3 install pytotp | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser() | |
parser.add_argument('key') | |
args = parser.parse_args() | |
print(totp.TOTP(args.key).now()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment