Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace PBKDF2 with SHA-256 (fix #336)
Ubuntu 14.04 doesn't have Python 2.7.8 (where pbkdf2 got added) :(
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c13e3f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the very least you should use $ZKITERATIONS rounds of sha256 as some minimal protection against brute-forcing (which still wouldn't provide the memory hardness of PBKDF2, Bcrypt, or Scrypt). This change eviscerates brute-force protection in the stored password hashes. A malicious attacker with access to the hashes can trivially find collisions (i.e. "crack the passwords").