-
Notifications
You must be signed in to change notification settings - Fork 20
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
Port Node crypto to WebCrypto #44
Comments
This might be useful when we do
|
I imagine there’s a ton of unused code in this dependency. We should first try tree shaking. It’s definitely not on since webpack is in development mode https://webpack.js.org/guides/tree-shaking/ |
I think this will be difficult because authentication checks are done under the hood for each call to crypto.subtle.decrypt, meaning we can't perform decryption on chunks (AFAIK). https://github.com/jedisct1/libsodium.js has a web assembly that might have a similar perf gain. |
Investigate whether https://www.npmjs.com/package/libsodium-wrappers can handle whatwg streams |
In order to reduce the worker script bundle size, we should look into porting our Node crypto usage to WebCrypto. This is a low priority task.
The text was updated successfully, but these errors were encountered: