- Store TOTP account credentials in an sqlcipher'd database
- Generate TOTP Codes
- Generate QR Codes to add your accounts to multiple devices
This was born from an awful experience with Google Authenticator where I realised I could not export or backup my codes. This is really just temporary until KeePassXC gets TOTP support.
- Takes password from CLI. You should be using FDE anyway.
- No HOTP support
$ go install github.com/erasche/go-otp
$ go-otp init -password 'blah blah blah'
$ go-otp add -password $password -secretKey LONGSECRETKEY -account alice@local.host -issuer AWS
$ go-otp add -password $password -secretKey LONGSECRETKEY -account alice@local.host -issuer AWS -update
$ go-otp -password $password gen
...............
[ alice@local.host ][ example.com ] 584325
$ go-otp -password $password qr
QR Code stored to AWS__alice@local.host.png
QR Code stored to AWS__jane@university.edu.png
QR Code stored to DigitalOcean__alice@gmail.com.png
QR Code stored to GitHub__alice@gmail.com.png
GPLv3