Miroshin Stepan
Miroshin Stepan
@TJKoury `webcrypto-liner` supports `Ed25519` https://github.com/PeculiarVentures/webcrypto-liner/blob/master/test/ed.ts#L12
This is because `wrapKey = exportKey + encrypt` https://github.com/PeculiarVentures/webcrypto-liner/blob/master/src/rsa/crypto.ts#L246 I'm not sure there is another way to resolve it. I think the best way is to use `wrapKey` usage with...
@borisreitman webcrypto-liner uses native Crypto if it's possible. This is why it doesn't throw error on `wrapKey` without `encrypt` key usage
@FalconIA this is source code for RSA wrapKey https://github.com/PeculiarVentures/webcrypto-liner/blob/master/src/rsa/crypto.ts#L230-L248 As I told before `wrapKey = exportKey + encrypt`. This is main problem for `encrypt` key usage error. I've got some...
@FalconIA @borisreitman I published new version of `webcrypto-liner`. Can you check it?
@dannycoates any luck with PR? There is new vote for [PBKDF2](https://github.com/PeculiarVentures/webcrypto-liner/issues/28). You can make PR to `webcrypto-core` and `webcrypto-liner`. I'll test and fix it if needed
`webcrypto-liner` is a polyfill. It wraps existing global `crypto` object Window. [pv-webcrypto-tests](https://peculiarventures.github.io/pv-webcrypto-tests/) ```html ``` You can use `crypto` without `import/require` ```js window.crypto.subtle.generateKey(alg, true, keyUsage); // or crypto.subtle.generateKey(alg, true, keyUsage); ```
`webcrypto-liner` is TS project. NPM version contains compiled JS files only. You don't need to install TypeScript and other dependencies for compiled files getting
Do you use any compiler for JS compilation? If yes. Do you have `fast-text-encoding` code in your bundled file after `import 'fast-text-encoding'` using?
The problem is that `package.json` uses `main: build/index.js`, but npm module doesn't have `build` Can you try to update `webcrypto-liner/package.json` and set `main: dist/webcrypto-liner.shim.js`? There can be problem with https://github.com/PeculiarVentures/webcrypto-liner/blob/master/src/init.ts#L5,...