MySQL Forums
Forum List  »  PHP

Re: How to store password for mysql_connect()
Posted by: Georg Richter
Date: April 19, 2006 10:10PM

MySQL stores an encrypted password in user table.

When the client (php) connects to server the server sends a random key. Now client encrypts the plain password from mysql_connect using the key and sends it to the server. So you will never see the plain password or the same encrypted password when sniffing traffic.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.