A command-line 2-factor authentication manager.
pip install twofa
Print Token
2fa
Add secret
2fa add 'Service Name' 'Secret'
Delete secret
2fa rm --confirm 'Service Name'
Rename Service
2fa rename 'Service Name' 'New Name'
Encrypt store
2fa passwd
You will be asked to enter a new password. If you leave this password empty, the data will be stored unencrypted.
Print QR code
2fa qr 'Service Name'
if you are using a light terminal theme:
2fa qr --invert 'Service Name'
We are using Click bash integration, which means you only need to add
eval "$(_2FA_COMPLETE=source 2fa)"
to your ~/.bashrc
to get autocompletion.