RE: [PHP] md5 encrypt problem

From: Date: Tue, 11 Mar 2003 12:06:33 +0000
Subject: RE: [PHP] md5 encrypt problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139118@lists.php.net to get a copy of this message
> 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 (#139118) next »