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

Support for shorter/longer secret keys #20

Closed
kwart opened this issue Sep 18, 2013 · 1 comment
Closed

Support for shorter/longer secret keys #20

kwart opened this issue Sep 18, 2013 · 1 comment
Assignees
Milestone

Comments

@kwart
Copy link
Owner

kwart commented Sep 18, 2013

Google 2 step verification displays in some cases only 16 characters (Base32) instead of 32 (which is size of key for SHA-1). Allow shorter (or longer) keys in totp-me - the class org.bouncycastle.crypto.macs.HMac will automagically fix the length (pad or cut) for us. We only need to disable length check.

@kwart
Copy link
Owner Author

kwart commented Sep 18, 2013

Done.

@kwart kwart closed this as completed Sep 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant