Menu

#1 md5 hashes do not get stored in dbase

open
nobody
None
5
2013-02-19
2001-11-17
Anonymous
No

This is a serious bug I found, Since my php has no
support for the crypt library functions.
So I changed all calls to crypt("BLAH","CRYPT_MD5");
to md5(Blah) (which everybody has) then I started
having tourbles with the passwords, they never
matched, finally I tracked the problem down to the
mysql table, when created the password field is of
length 50 and themd5 hashes have 52 chars, I would
advice to change the password field from a varchar
to a tinytext, so crypted passowrd hashes are sure to
be stored complete in the database ...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.