Skip to content
forked from dim13/otpauth

Google Authenticator migration decoder

License

Notifications You must be signed in to change notification settings

sean-liu/otpauth

This branch is 27 commits behind dim13/otpauth:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 21, 2021
e4441ec · Dec 21, 2021

History

83 Commits
Aug 24, 2021
Jul 21, 2021
Dec 21, 2021
Jul 29, 2021
Nov 29, 2021
Jun 3, 2020
Jul 21, 2021
Aug 21, 2021
Aug 21, 2021
Dec 21, 2021
Oct 23, 2021

Repository files navigation

Google Authenticator migration decoder

Logo

Convert Google Authenticator otpauth-migration://offline?data=... transfer links to plain otpauth links.

Usage

  • Navigate to ⋮ → Transfer accounts → Export accounts.
  • Extract migration link from QR-code using your preferred software.
  • Pass link to otpauth tool.

Flags

  -cache string
    	cache file (default "migration.bin")
  -eval
    	evaluate otps
  -http string
    	serve http (e.g. localhost:6060)
  -info
    	display batch info
  -link string
    	migration link (required)
  -qr
    	generate QR-codes

Example

NOTE: at least Go 1.16 required, or use latest binary release.

go get github.com/dim13/otpauth
~/go/bin/otpauth -link "otpauth-migration://offline?data=CjEKCkhlbGxvId6tvu8SGEV4YW1wbGU6YWxpY2VAZ29vZ2xlLmNvbRoHRXhhbXBsZTAC"

Will output:

otpauth://totp/Example:[email protected]?issuer=Example&secret=JBSWY3DPEHPK3PXP

QR-Codes

~/go/bin/otpauth -qr -link "otpauth-migration://offline?data=CjEKCkhlbGxvId6tvu8SGEV4YW1wbGU6YWxpY2VAZ29vZ2xlLmNvbRoHRXhhbXBsZTAC"
# view and scan *.png in current working directory

Will generate:

Example

Serve http

~/go/bin/otpauth -http=localhost:6060 -link "otpauth-migration://offline?data=CjEKCkhlbGxvId6tvu8SGEV4YW1wbGU6YWxpY2VAZ29vZ2xlLmNvbRoHRXhhbXBsZTAC"

Navigate to http://localhost:6060/

About

Google Authenticator migration decoder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 88.0%
  • HTML 5.0%
  • Shell 2.6%
  • JavaScript 2.4%
  • CSS 2.0%