Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What is the major difference? Isn't crypto-js still secure?


One 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.


I 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.


Why use a library (thus incurring the need for the user to download more JS) instead of using what is already in their browser?


It might be. Whereas the native lib should be.

Just levels of trust. I'd happily use the former if the latter didn't exist.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: