doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

`rbw code` cannot parse TOTP secret when there are spaces in it #56

Closed TamasBarta closed 3 years ago

TamasBarta commented 3 years ago

Many sites provide TOTP secrets chunked by spaces. One example is Google. When I try to use rbw code on entries in my vault for those sites, I get the following error:

rbw code: totp secret was not valid base32

I believe this could be solved by just stripping all spaces from the TOTP secret strings.