-
Notifications
You must be signed in to change notification settings - Fork 36
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
Use crypto.webcrypto.*
functions to be compliant with the Web Crypto spec
#49
Comments
Put some notes on #50 (comment) as well, but as far as this feature request generally I think my question would be: what's the use case? My understanding is that |
@natevw My goal was to make this a first step towards full Web Crypto compliance (using the |
Yeah, that does seem useful at least in some library. But the code here is basically two tiny functions that have worked ± the same for over a decade. @dougwilson is the Express framework moving to support other runtimes besides Node.js? Otherwise I'm inclined to decline this work here, and leave improvements like this available to a new npm package that can have a fresh start in the modern JS era. |
@natevw The end-result of these changes will be exactly the same as it was without these change, it's only an internal change of using different APIs |
If anyone's interested, I recently published a new package called |
@nexdrew No apologies needed, thanks for sharing! Seems to match exactly my hope that someone could make a fresh start without the backwards compatibility constraints. If more people end up needing this we could probably update the README as well (and perhaps there's other similar libraries in the space…). |
https://nodejs.org/dist/latest-v20.x/docs/api/crypto.html#cryptosubtle
CC/ @natevw
The text was updated successfully, but these errors were encountered: