Skip to content

Instantly share code, notes, and snippets.

@chrisswanda
Last active June 12, 2020 13:06
Show Gist options
  • Select an option

  • Save chrisswanda/05522fb0003734fd01782f24097cd515 to your computer and use it in GitHub Desktop.

Select an option

Save chrisswanda/05522fb0003734fd01782f24097cd515 to your computer and use it in GitHub Desktop.
qrencode syntax for Duo Mobile
https://duo.com/product/multi-factor-authentication-mfa
https://fukuchi.org/works/qrencode/
qrencode -l L -v 1 -o test.png 'text_input'
Example - qrencode -l L -v 1 -o GoogleText.png 'otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example'
For standard Google Authenticator or Authy QR codes, see this example:
qrencode -o test.png 'otpauth://totp/ACME%20Co:john@example.com?secret=HXDMVJECJJWSRB3HWIZR4IFUGFTMXBOZ&issuer=ACME%20Co&algorithm=SHA1&digits=6&period=30'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment