Re: md5() and mysql

From: Date: Fri, 29 Aug 2003 02:04:29 +0000
Subject: Re: md5() and mysql
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-30205@lists.php.net to get a copy of this message
Mike Baerwolf wrote:
I'm looking at using md5() and mysql for user auth to some of the data in a table. I found the following on the php md5 manual page, $query = "INSERT INTO user VALUES ('DummyUser',md5('DummyPassword'))"; $password = md5($password); $query = "SELECT * FROM user WHERE username='DummyUser' AND password='DummyPassword'";
password = '$password'";
I see that nobody will be able to view the password once it's in the database, but I'm thinking that the plain text password is sent to and from the server and someone might be able to snoop the plain text password. Is that right?
Yes. That's why you use SSL on your login pages. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.db (#30205) next »