solokeys / solo2-cli

Solo 2 library and CLI in Rust
https://docs.rs/solo2
Apache License 2.0
169 stars 31 forks source link

48 character TOPT "To long" #66

Closed Filyx20 closed 2 years ago

Filyx20 commented 2 years ago

on websites that for example could be amazon, the totp secret is 52 characters long. however when registering them in solo2-cli it states thew folowing: solo2 app oath -a register Amazon "52 character long TOPT code" Error: invalid length at 48.

nickray commented 2 years ago

My AWS root TOTP is 64 characters long and things work. PR https://github.com/solokeys/solo2-cli/pull/41 isn't published though, is your use case fixed after cargo install --git https://github.com/solokeys/solo2-cli --locked?

nickray commented 2 years ago

I believe this is fixed with the release of https://github.com/solokeys/solo2-cli/releases/tag/v0.2.0.

mkopec commented 10 months ago

I am seeing the same issue with a 52-character TOTP secret from Amazon, on solo2-cli v0.2.2 and rev 5fd8e5a8 and solo2 firmware 2:20220822.0

$ solo2 app oath register Amazon [52 char TOTP secret] -d 6
Error: invalid length at 48