kevlened / isomorphic-webcrypto

:game_die: webcrypto library for Node, React Native and IE11+
https://www.w3.org/TR/WebCryptoAPI/
MIT License
116 stars 42 forks source link

index.js depends on an archived dependency #17

Closed kdenhartog closed 5 years ago

kdenhartog commented 5 years ago

the npm package @trust/webcrypto was archived recently which is used as a dependency in index.js. Is there another dependency that this can be moved to?

kevlened commented 5 years ago

https://github.com/PeculiarVentures/node-webcrypto-ossl is the only still-supported one I've seen, but it's a native module. Native modules can cause some issues for those using Electron, so I'm hesitant to move, but I also realize there's potential security risk in using an archived project.

Ideally this is solved as a minimal shim over the node crypto apis, but I personally won't be able to address the issue soon. I'd review and accept PRs if you'd like.

kdenhartog commented 5 years ago

Sounds like a plan. I'm working on some investigation for a separate project, so I can identify if that dependency causes issues with an electron app and provide details here when I know more.

I think building on the node-crypto APIs is also a good backup option. To also support ED25519/X25519 as well in here we can build on elliptic similar to what @trust/webcrypto is doing.

kevlened commented 5 years ago

Just discovered PeculiarVentures's similar, js-only polyfill (@peculiar/webcrypto). isomorphic-webcrypto uses @peculiar/webcrypto in v2.

kevlened commented 5 years ago

Closing for now.