node-jose icon indicating copy to clipboard operation
node-jose copied to clipboard

Browser compatible implementation of Chacha20/Poly1305, X25519 and ED25519

Open Mischala opened this issue 6 years ago • 2 comments

I'm currently working on a project that requires Chacha20/Poly1305 & X25519 for JWE, and ED25519 for JWS for all data sent to the backend, from a browser.

Currently it's possible to use all of these on Node, because it's Crypto module contains an implementation of them.

However, I need it in the Browser. I'm thinking of integrating a pure JavaScript implementation of Chacha20/Poly1305 X25519 and ED25519 into node-jose, for this purpose. To be compliant with the following RFCs: RFC7539 RFC8439 RFC8037

My question is, would you be interested in a PR? or is the focus on WebCrypto only?

Thanks, Mischa

Mischala avatar Sep 21 '18 00:09 Mischala

We’d like to see a js implementation contribution, yes. That being said native is always better.

panva avatar Mar 29 '19 11:03 panva

Relevant PRs to node-forge https://github.com/digitalbazaar/forge/pull/851 however node-forge doesn't seem to have very active work as there's lots of PRs being left there.

CMCDragonkai avatar Jun 17 '21 01:06 CMCDragonkai