-
Notifications
You must be signed in to change notification settings - Fork 38
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
sha256 token creation #29
Comments
this seems to work:
|
:crypto.hmac is deprecated though |
but there is this drop-in replacement: I'll see if i can get a pr up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to generate and verify totp tokens.
this works well when using
[digest_method: :sha]
, but I need to use rfc6238 SHA256 tokens.getting failures when trying
digest_method: :sha256
which points at this:
SHA256 returns 32 bytes, not 20. hotp seems to assume SHA-1 - which is fine, except if it is used for totp it should also support SHA256 and SHA512
The text was updated successfully, but these errors were encountered: