Re: MySQL Password Function

From: Date: Thu, 06 Nov 2003 16:09:25 +0000
Subject: Re: MySQL Password Function
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-168743@lists.php.net to get a copy of this message
Shaun wrote:
"John Nichel" <jnichel@by-tor.com> wrote in message <snip>
Not that this would make your site more secure (well, I guess it would be more secure than plain text), but just use it in your query.... INSERT INTO someDB.someTable ( username, password ) VALUES ( '{$username}', PASSWORD('{$password}'); -- By-Tor.com It's all about the Rush http://www.by-tor.com
Thank you for your replies, can i just confirm that the user uses the encrypted version of the password or the originally inserted version to login? Thanks for your help
Yes, you can. But by the time it has reached the MySQL server, it has passed from the client to your server via plain text, and to my understanding (I may be wrong here), MySQL's built in password function isn't all that secure. For better security, I would suggest a combination of https and md5, or write a custom encryption function. -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#168743) next »