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

I use counter mode with 256 bit key Key is generated as sha256 hash of the user password


That'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.


You should also use SJCL's AES.

Here's the link: http://bitwiseshiftleft.github.com/sjcl/




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

Search: