Can I hash a database password in a PHP class?
Posted: Mon Mar 31, 2008 10:35 pm
I just tried the following...
That seems pretty nifty however is there a way I can encrypt/hash a password? If so how would I need to modify the code?
Code: Select all
$username = $my_db->give('username');
$password = $my_db->give('password');
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password) or exit($dbip = "0");