totp-gen
Generate TOTP token
Usage
- Secret as parameter
totp-gen -secret <BASE32 secret>
- Secret from stdin
# Using macOS keychain
security find-generic-password -a ${USER} -s TOTP/github.com -w | totp-gen
# Using pass
pass TOTP/github.com | totp-gen