Re: MySQL Password Function

From: Date: Thu, 06 Nov 2003 13:33:23 +0000
Subject: Re: MySQL Password Function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-168710@lists.php.net to get a copy of this message
From: "Raditha Dissanayake" <jabber@raditha.com> > From: "Shaun" > >I am trying to make my site more secure, can anyone suggest a tutorial on > >using the mySQL password function with PHP. I can't find anything through > >google... > > it's very simple intead of using > insert into users set userPassword='123'; you say > insert into users set userPassword=password('123'); And the column type should be CHAR(16) or VARCHAR(16), as the result of PASSWORD() is always 16 characters. Oh, and this will do almost NOTHING to make your site more secure. Why do you think it will? ---John Holmes...

« previous php.general (#168710) next »