Update README.md to include an example for PBKDF in browser with js-sha256#115
Update README.md to include an example for PBKDF in browser with js-sha256#115mohsenasm wants to merge 2 commits intoricmoo:masterfrom
Conversation
…ha256 Using the `pbkdf2` library in the browser is not very straightforward. Including a simpler yet secure way for the browsers in the readme is good.
|
I think this is out of scope for this readme though, no? There are so many ways, and sha2-256 is not a great way to create a key from a password. It is subject to rainbow table attacks but also, in your example could yield different keys on computers in different countries, since the password isn’t normalized to a specific form. Algorithms like pbkdf2 explicitly state which normalized form to use and there are a lot of other nuances that may be missed, which when it comes to deterministic key generation is important. I’m also a firm believer in key stretching, which is why I usually use scrypt. ;) |
|
There is a I don't think |
Using the
pbkdf2library in the browser is not very straightforward.Including a simpler yet secure way for the browsers in the readme is good.