-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Node compat crypto.createSecretKey #17844
Labels
Comments
Appears it's quite popular in various Node.js libraries for auth. @kt3k could we prioritize this one? |
I'll give this a crack. |
littledivy
added a commit
that referenced
this issue
Mar 24, 2023
This commit adds the `crypto.createSecretKey` API. Key management: This follows the same approach as our WebCrypto CryptoKey impl where we use WeakMap for storing key material and a handle is passed around, such that (only internal) JS can access the key material and we don't have to explicitly close a Rust resource. As a result, `createHmac` now accepts a secret KeyObject. Closes #17844
mmastrac
pushed a commit
that referenced
this issue
Mar 31, 2023
This commit adds the `crypto.createSecretKey` API. Key management: This follows the same approach as our WebCrypto CryptoKey impl where we use WeakMap for storing key material and a handle is passed around, such that (only internal) JS can access the key material and we don't have to explicitly close a Rust resource. As a result, `createHmac` now accepts a secret KeyObject. Closes #17844
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I'm trying to convert my sveltekit app to use deno, but I keep getting a problem from my auth library authjs that goes like: JWTSessionError: Not implemented: crypto.createSecretKey If you navigate to node/internal/keys.ts you find this piece of code which I think is the where the error is being thrown from:
Describe the solution you'd like
I'd like the function to be implemented.
Describe alternatives you've considered
None
The text was updated successfully, but these errors were encountered: