Menu

#66 Zeros being dropped from password hash

Future
open
nobody
None
7
2015-11-14
2015-11-14
Bruce Merry
No

The hashpw function tries to write an MD5 sum as hexadecimal, but leading zeros are not preserved, so a byte 0d is written as d.

More generally, this is a terrible hash function. We should replace it with something like bcrypt and use proper salting.

Discussion


Log in to post a comment.