opencrypto icon indicating copy to clipboard operation
opencrypto copied to clipboard

Node.js package

Open pantchox opened this issue 3 years ago • 5 comments

Hi, thanks for this great wrapper.

I think from node version 15.14.0 there is webcrypto in the official crytpo library. like so: require('crypto').webcrypto or using https://github.com/PeculiarVentures/webcrypto this might be a good idea to offer isomorphic package.

thanks!

pantchox avatar Apr 22 '21 17:04 pantchox

Hey there! Wondering if there are any updates on this as I was just about to build my own wrapper on top of opencrypto and the crypto package. Wouldn't mind taking a crack at it if it's not under development.

jackHedaya avatar Nov 26 '21 19:11 jackHedaya

Hi @pantchox thank you for the suggestion! It is very appreciated. Apologies for the late reply, I've been very busy during the last few months. I'd be glad to include this option. Feel free to open a PR.

PeterBielak avatar Nov 28 '21 19:11 PeterBielak

We have multiple options of going about this. @PeterBielak do you think the isomorphic-crypto package or a custom require('crypto') situation is better?

jackHedaya avatar Nov 28 '21 19:11 jackHedaya

@jackHedaya I'd prefer to build a custom solution as to prevent usage of any third party dependencies.

PeterBielak avatar Nov 28 '21 19:11 PeterBielak

So thinking we could use crypto.webcrypto but getting caught on the thought that it was only introduced in Node v12. Maybe we should use a shim but at that point we're using a 3rd party package anyways. Thoughts?

jackHedaya avatar Nov 29 '21 04:11 jackHedaya