Re: md5 encrypt problem

From: Date: Tue, 11 Mar 2003 17:24:29 +0000
Subject: Re: md5 encrypt problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139133@lists.php.net to get a copy of this message
Exactly right, John. Sorry to clutter the forum -- it was a varchar(30)! Thanks, --Noah ----- Original Message ----- From: "John W. Holmes" <holmes072000@charter.net> To: "'CF High'" <noah@newminddesign.com>; <php-general@lists.php.net> Sent: Tuesday, March 11, 2003 4:06 AM Subject: RE: [PHP] md5 encrypt problem > > Having a wee bit o' trouble with a simple md5 script: > > > > for ($x=1 ; $x <62 ; $x++) { > > > > $mypass = "sports" . $x; > > $mypass = md5($mypass); > > > > dbConnect("UPDATE user_login SET password = '$mypass' WHERE > > school_id > > = $x"); > > > > } > > > > For some reason, when I attempt to login with my md5'd user supplied > > password I get no match. Bizarre, haven't had this problem > > before........... > > Is the 'password' column in your database a CHAR or VARCHAR column with > a length of 32? If it is, then show the code where you validate someone > logging in. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > >

« previous php.general (#139133) next »