Len Boyette

Results 47 comments of Len Boyette

Unfortunately, after minification, using reduce is actually larger (using https://jscompress.com/ which uses UglifyJS 3 and Babili): original (119 bytes): ```export default function dlv(a,b,c,d){for(d=0,b=b.split?b.split('.'):b;a&&d

The difficulty is in how we copy the files. By default, we add the files by adding them to `compilation.assets` and letting webpack take care of writing the files. The...

As another data point, I'm running the latest version of Jest (23.6.0 - released 5 days ago) and haven't run into this issue.

Hmm, I'm unsure what setting this library to typescript + es6 would mean and how it would help integrate with other WebCrypto libraries. vscode should automatically import types from libraries...

Cryptography is CPU-bound, so long operations will lock the thread. To get around the problem in the browser, the MSR library uses WebWorkers. React-native doesn’t support WebWorkers by default, but...

Ah. I assumed you were using `Promise.all` to try to speed up the crypto operations, but you're just trying to avoid unexpected side effects if someone calls crypto methods concurrently....

The react native implementation of WebCrypto is in js, so generating an RSA key would be remarkably slow. The original version of msrCrypto didn't support this, but perhaps the latest...

Ah, I see. Because it's all in js, you'll lock RN's js thread for that time. The app would basically freeze. That said, there *may* be a workaround, but I...

RN doesn’t support workers, so you have to hardcode it to work in a single thread (that’s how I modified the old msrCrypto). I’d test it in a browser. If...

It’s possible to generate these keys in a WebView. The catch is the WebView must be in the render tree (it can be hidden though). Here’s an implementation that renders...