2 ms·
What is the major difference? Isn't crypto-js still secure?
by paulpauper 4y ago
What is the major difference? Isn't crypto-js still secure?
- Xeoncross 4y agoOne is a Javascript package, the other is a browser library following a spec that is implemented by all the major browser companies. Web Crypto is faster and has many more devs working in the different implementations between all the companies and doesn't require any includes.
- lucideer 4y agoIt might be. Whereas the native lib should be. Just levels of trust. I'd happily use the former if the latter didn't exist.
- irrational 4y agoWhy use a library (thus incurring the need for the user to download more JS) instead of using what is already in their browser?
- tptacek 4y agoI don't know what "secure" means. Is their implementation of OFB correct? Probably. But using OFB mode is itself a problem. From what I can see, crypto-js implements no authenticated modes, and exposes all sorts of crufty old things nobody should be using. The parent comment suggesting WebCrypto is correct in this case. Avoid crypto-js.