solokeys / solo2-cli

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

Duo HOTP key rejected #59

Closed loveshack closed 2 years ago

loveshack commented 2 years ago

I tried to add a HOTP key (for Duo), but it was rejected with Error: invalid length at 48. The secret is 51 characters base32. (From the --help example I assume it should be given as base32, and it would be good if the help said.) It works with oathtool, for instance.

westerguard commented 2 years ago

I have the same problem with my Amazon TOTP code containing 52 characters base32.

Also get an error if it has 26 characters: Error: invalid length at 24

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.

westerguard commented 2 years ago

Well, I still get the same output with cli version 0.2.0.

loveshack commented 2 years ago

Well, I still get the same output with cli version 0.2.0.

Likewise.