Skip to content

Instantly share code, notes, and snippets.

@hamid-elaosta
Last active December 21, 2016 01:17
Show Gist options
  • Select an option

  • Save hamid-elaosta/31a368cae9ffbe884a7f26f364c7b75f to your computer and use it in GitHub Desktop.

Select an option

Save hamid-elaosta/31a368cae9ffbe884a7f26f364c7b75f to your computer and use it in GitHub Desktop.
TOTP QR in your terminal
#!/bin/bash
# Example: otpauth://Example:user%40example.com?secret=32W3536K725L5UAN&issuer=Example
qrencode -t UTF8 "otpauth://totp/<issuer>:<name>%40<location>?secret=<BASE32 ENCODED SECRET>&issuer=<issuer>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment