TOTP CLI
Support Google-Authenticator spec as default.
Hash | Period | Digit | Key |
---|---|---|---|
HMAC-SHA1 | 30s | 6 | Base32 encoded |
brew tap taekop/totp
brew install totp
Configuratinon file is stored at ${HOME}/.totp-config
You can give force option (-f) to overwrite.
You can assign hash algorithm (-h), period (-t), digit (-g).
For not Base32 encoded key, give pure option (-p).
(ex) MFA key for aws. Choose virtual device -> Google Authenticator.
totp -n aws -k <key>
totp -n aws -k <key> -f
totp -n aws -k <key> -h sha256 -r 15 -g 8
totp -n aws -k <key> -p
totp -n aws
totp -l
totp -al
totp -d -n <name>
totp