Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

webcrypto #27

Closed
daviddias opened this issue Sep 15, 2015 · 5 comments
Closed

webcrypto #27

daviddias opened this issue Sep 15, 2015 · 5 comments

Comments

@daviddias
Copy link
Member

webcrypto

https://github.com/diasdavid/webcrypto

WebCryptoAPI polyfil to work in Node.js in the Browser (so that you don't have to be concerned about moving crypto code between a browser and server side app)

Context: nodejs/node#2833

How can you help

  • The module is still being made, if someone wants to take the lead, it would be great :)
@autoit4you
Copy link

I'd definitively interested in helping, although I'm not sure where to start.

@daviddias
Copy link
Member Author

@autoit4you we need to create a interface that hopefully takes the most from the overlap of both worlds and then make a shim for the remaining calls that differ from both implementations.

One thing to have in mind is that WebCryptoAPI is promises based, while the Node.js Crypto module is callback based (for now), so we will need to define both interfaces too

@harlantwood
Copy link
Contributor

Not sure if it helps, but I've found Bluebird's

.promisify( function )

And

.promisifyAll( module )

To be very useful and easy ways to automatically create promises from functions that take callbacks... (though they don't work with all libs).

@harlantwood
Copy link
Contributor

@daviddias
Copy link
Member Author

Getting everything more organised, moving libp2p endeavours to js-libp2p, new issue can be found at - libp2p/js-libp2p#4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants