5 ms·
I use counter mode with 256 bit key Key is generated as sha256 hash of the user password
by eran 15y ago
I use counter mode with 256 bit key
Key is generated as sha256 hash of the user password
- tptacek 15y agoThat's also not a secure way of generating an AES key; those crypto keys can be cracked quickly. The problem you're trying to solve is the entire reason for PBKDF2. You should also use SJCL's AES.
- bdhe 15y agoYou should also use SJCL's AES. Here's the link: http://bitwiseshiftleft.github.com/sjcl/ http://bitwiseshiftleft.github.com/sjcl/