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

Handle padding on base32 secrets #11

Closed
wants to merge 1 commit into from
Closed

Handle padding on base32 secrets #11

wants to merge 1 commit into from

Conversation

akerl
Copy link

@akerl akerl commented Oct 3, 2018

This should handle #7 by padding out the Base32 string to always be a multiple of 8 characters in length.

That said, it feels like a dangerous spot to hide the errors from base32 decoding the secret. Fixing that would require changing the API such that Get() (and thus the TOTP validate calls as well) would return an error in addition to their existing result.

@akerl akerl closed this by deleting the head repository Aug 19, 2022
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

Successfully merging this pull request may close these issues.

1 participant