Skip to content

Instantly share code, notes, and snippets.

@egidijus
Created October 23, 2015 12:28
Show Gist options
  • Save egidijus/9d441872a344858e78b8 to your computer and use it in GitHub Desktop.
Save egidijus/9d441872a344858e78b8 to your computer and use it in GitHub Desktop.
google authenticator python script. prints your one time auth code to stdout
#!/usr/bin/python
import onetimepass as otp
my_secret = 'YOURGOOGLEAUTHSECRET'
my_token = otp.get_totp(my_secret)
print(my_token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment