Connect to MySQL with hashed password?
connection, hash, mysql, php
Solution
The short answer is no.
But, just wondering... what is your real concern? Someone hacking into your server and discovering your password?
Problem
I was wondering (and used Google with no clear result) if there is any way to connect to a MySQL database with PHP using a hashed password. Say I have the following: ``` Password (plain): 'foobar' Password (sha1): '8843d7f92416211de9ebb963ff4ce28125932878' ``` Now I would like to connect to MySQL like this (using the mysql_* function as example, I'm using PDO though): ``` $db_link = mysql_connect ( 'localhost', 'user', '8843d7f92416211de9ebb963ff4ce28125932878' ); ``` I this possible? Have anyone done this before?