cant figure out if passwords are encrypted.
Posted: Thu Mar 22, 2007 1:21 am
I"m trying to retreive the passwords from database (forgot pasword feature)
This is how password is inserted into database
$password = $_POST['password'];
$result=MYSQL_QUERY("INSERT INTO owners (id,confirmed,confirmcode,name,email,password,phone)"."VALUES ('NULL', '0', '$confirmcode', '$name', '$email', '$password', '$telephone')");
field password is TEXT
heres how i'm trying to retreive the password
$result = mysql_query("SELECT password FROM writers WHERE email='$email'");
$pass = mysql_fetch_object($result);
$pass->password returns a string like "e6b5a70d236a5869e77d7572ac6d98e3"
This is how password is inserted into database
$password = $_POST['password'];
$result=MYSQL_QUERY("INSERT INTO owners (id,confirmed,confirmcode,name,email,password,phone)"."VALUES ('NULL', '0', '$confirmcode', '$name', '$email', '$password', '$telephone')");
field password is TEXT
heres how i'm trying to retreive the password
$result = mysql_query("SELECT password FROM writers WHERE email='$email'");
$pass = mysql_fetch_object($result);
$pass->password returns a string like "e6b5a70d236a5869e77d7572ac6d98e3"