Skip to content

Instantly share code, notes, and snippets.

@roeniss
Last active March 5, 2023 03:48
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 roeniss/f1101356d61185e0d5e5814f7b4d5f0d to your computer and use it in GitHub Desktop.
Save roeniss/f1101356d61185e0d5e5814f7b4d5f0d to your computer and use it in GitHub Desktop.
google otp to alfred workflow

Step 1. Generate OTP code from Google OTP application ("Export accounts")

Step 2. Read the QR code(s) with tools (e.g., online qr reader, some python scripts, ...)

Step 3. Extract secret codes from QR code(s) with the script from https://github.com/scito/extract_otp_secrets

Step 4. Install the Alfred workflow: https://github.com/moul/alfred-workflow-gauth

Step 5. Write ~/.gauth file with the information got from Step 3

If not working: You can debug from Alfred workflow panel. It'd be probably a python executable missing problem. If so, check this: moul/alfred-workflow-gauth#29

Recommendation: gauth is a too long shortcut. Just use ga, gg, or otp.

Warning: ~/.gauth file literally has your 2nd verification secret key. It's basically not a safe action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment