Re:2FA on the command line
by munchbunny on Thursday February 28, 2019 @05:04PM
(#19275720)
2FA is to mitigate risk after the password is compromised, not to prevent password compromise in the first place.
That doesn't change the necessity of protecting TOTP keys, session keys, bearer tokens, etc., it's just that your second factor is supposed to be a parallel factor, not an extra lock around your password.
Apart from that I believe that TOTP keys should be encrypted and that is actually my main issue with the described tool - it stores the keys in plain, in a config file.