Re: Sending a hashed password on mysql_connect

From: Date: Sun, 14 Mar 2004 18:40:55 +0000
Subject: Re: Sending a hashed password on mysql_connect
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33446@lists.php.net to get a copy of this message
Andre Matos wrote:
Is it possible to send a already hashed password on mysql_connect? Usually when I use mysql_connect (host, user, password), for example mysql_connect("myhostaddres", "userabc", "12345"), I use a text password. I tried to hash a password and then sent it but my connection failed. Is this possible? Any Ideas?
You don't really need to have an encrypted connection to MySQL unless your webserver and MySQL server are on different machines *and* those machines are not behind the same switch/firewall/router/etc. Otherwise, I guess you could create an IPSec (or maybe an SSH) tunnel to the other machine and redirect it to a local port. As far as I can tell, there's no way to create a secure MySQL connection via PHP... Bruno Ferreira --- [This E-mail scanned for viruses by Declude Virus]

« previous php.db (#33446) next »