RE: [PHP] problems with md5()

2004-04-07 Thread jdavis
On Wed, 2004-04-07 at 22:59, Chris wrote: > The second, longer, one is the correct one. > > It looks like the column you've got the password stored in is too small, it > must be 32 characters long > > Chris > On Wed, 2004-04-07 at 22:57, Jason Wong wrote: >md5() returns a 32 character string s

Re: [PHP] problems with md5()

2004-04-07 Thread Richard Harb
could it be that the field in the database is of type varchar(25) ? looks like it's too small to hold the complete hash: that one always consists of 32 characters. Thursday, April 8, 2004, 6:35:47 AM, you wrote: > hello, > I have a database containing usernames and md5 encrypted passwords. > Whe

Re: [PHP] problems with md5()

2004-04-07 Thread Jason Wong
On Thursday 08 April 2004 12:35, jdavis wrote: > hello, > I have a database containing usernames and md5 encrypted passwords. > When i use md5() to encrypt a users password recived via a form > to compare to the md5ed passwd in the database i get problems... > > for instance ... > > user foo has p

RE: [PHP] problems with md5()

2004-04-07 Thread Chris
The second, longer, one is the correct one. It looks like the column you've got the password stored in is too small, it must be 32 characters long Chris -Original Message- From: jdavis [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 9:36 PM To: PHP List Subject: [PHP] pro

[PHP] problems with md5()

2004-04-07 Thread jdavis
hello, I have a database containing usernames and md5 encrypted passwords. When i use md5() to encrypt a users password recived via a form to compare to the md5ed passwd in the database i get problems... for instance ... user foo has passwd 'pass' 'pass' md5ed in database is this 1a1dc91c9073