Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When totp secret has spaces otp code is coming as invalid #132

Open
rajashekar opened this issue Dec 11, 2020 · 4 comments
Open

When totp secret has spaces otp code is coming as invalid #132

rajashekar opened this issue Dec 11, 2020 · 4 comments

Comments

@rajashekar
Copy link

Try this tool - https://totp.danhersam.com/ with below params
give secret as - abcd abcd abcd abcd abcd abcd
Number of digits - 6
interval as 30

Insert above secret

pass otp insert -s -a test otp/test.com

and try to generate otp

pass otp otp/test.com

The generated code is not matching with actual one. Tried the same totp secret with other apps like password-store they are showing correct code which is matching with tool https://totp.danhersam.com/

@miikanissi
Copy link

I'm having the same issue, is there something we are missing?

@rajashekar
Copy link
Author

I think its because of spaces between the secret. After removing spaces, its working as expected. Might be during adding secret at prompt, stripping out spaces might fix this issue.

@miikanissi
Copy link

I think its because of spaces between the secret. After removing spaces, its working as expected. Might be during adding secret at prompt, stripping out spaces might fix this issue.

Removing spaces didn't fix it for me. But I was able to add the secret by scanning the qr code.

@gabrielhidasy
Copy link

I have the same problem with Google and Amazon OTPs, but they do work after I remove the spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants