webcrypto
webcrypto copied to clipboard
W3C Web Cryptography API for Node.js
I was trying to use `@trust/webcrypto` as a polyfill for [pki.js](https://github.com/PeculiarVentures/PKI.js) so that I could use it as a replacement to [node-webcrypto-ossl](https://github.com/PeculiarVentures/node-webcrypto-ossl) but ran into problems while trying to perform...
Hey, I am building an hybrid application that shares the same code on both server and client sides. Same JS files, same modules. After some hours trying to figure out...
…. I would argue it should be the only provider and exclude openssl altogether.
This module directly uses `asn1.js` but also indirectly via `node-rsa` uses `asn1`. If correctly guessed (from just looking at the module names!) that those provide same/similar functionality, then it seems...
I know the README says [Not for use in Webpack](https://github.com/anvilresearch/webcrypto#not-for-use-in-webpack), but Webpack isn't only used for outputting browser code. When using a [target](https://webpack.js.org/configuration/target/) other than `web` (NodeJS, Electron, etc.) there's...
Algorithms currently outstanding are: - [ ] ECDH - [ ] HKDF - [ ] PBKDF2 These need to be completed before we can publish `1.0.0`.
When executing the example for `subtle.digest` from the [Mozilla web docs](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest) I get ``` Error: undefined is not a supported algorithm at SHA.digest (-----/node_modules/@trust/webcrypto/src/algorithms/SHA.js:69:13) ``` It looks like [SHA.js](https://github.com/anvilresearch/webcrypto/blob/7a6da38f00504b4cb0db01e76f9dbf19ef0afb15/src/algorithms/SHA.js#L42) is...
I'm having trouble when trying to use the importKey method. The output I'm getting, along with the error is: `Error: Algorithm requires a valid hash object. at new RSA_OAEP (/project/node_modules/@trust/webcrypto/src/algorithms/RSA-OAEP.js:47:17)...
The examples on [MDN][1] show strings passed as the first argument. I've tested that it actually works in browsers. The [specification][2] shows `AlgorithmIdentifier` as the first argument to `digest` and...
I am not able to use `RSASSA-PKCS1-v1_5` keys to sign data. I wrote up a simple test to demonstrate the issue: https://github.com/kloepper/sign_test/blob/master/sign_test.js The `signTest()` function works correctly in a browser....