Open nh2 opened 3 years ago
I'm not sure; can you post the result of zbarcam -q --raw
(with the secret and account information sanitized, of course)? I suspect an issue with the image andOTP is generating.
In pass-import I ran into the same issue: https://github.com/roddhjav/pass-import/issues/166
Maybe it is helpful.
Hey, thanks for your software, it is very useful.
I used
zbarcam -q --raw | pass otp insert 'Amazon MFA'
to bring an Amazon OTP seed from andOTP into pass, making andOTP display a bar code and scanning it with zbarcam.Afterwards,
pass otp show 'Amazon MFA'
prsented the following error:Using
pass show
revealed that it hadIn the string.
%3D
is the=
character, which I believe is the padding char in base32, and thus having 4=
in a row is illegal in base32.Removing the
%3D%3D%3D%3D
withpass
fixespass otp
working.Do you have a suggestion where this error could be introduced? E.g. is it andOTP displaying a bad code, zbarcam converting it wrong, or is
pass-otp
itself putting in the padding?Thanks.