Webcrypto Runtime in NodeJS #585
Replies: 3 comments 5 replies
-
You can use the |
Beta Was this translation helpful? Give feedback.
-
Fantastic! Thanks for adding that. One note: I didn't even know that the jose-browser-rutime project existed. I might suggest adding a note to the jose readme about this option. |
Beta Was this translation helpful? Give feedback.
-
Verifying that this option worked as advertised. One note: in Node 18 the globalThis object is missing the |
Beta Was this translation helpful? Give feedback.
-
This is a followup to 466
Signing and verification are now natively async in Node (yay!). However encryption and decryption are still not - except when using the new webcrypto object. Is it possible to expose the webcrypto runtime to NodeJS or to allow webcrypto methods to be used for encryption / decryption operations in NodeJS?
I have a high load service and I can't block the main event loop with crypto operations. I'm currently using worker-threads to offload the operations, but it adds a lot of unnecessary complexity.
I'm open to other suggestions as well.
Beta Was this translation helpful? Give feedback.
All reactions