Decoding a retrieved password from mysql [answer found!]
Posted: Wed Oct 24, 2007 2:06 pm
Another day, another question. 
I'm now onto building a login for my current project - image host.
User submits password > password is encoded
Like so:
Now say, if i were to email them their password, (they've forgotten it?), it would send the encoded password and not the one they input! And i'm unsure of how to Decode it.
This is just soemthing i was using to see how i could decode it, this isnt the actual way i will go about it
Obviously it doesn't work..
Any ideas?
Thanks
I'm now onto building a login for my current project - image host.
User submits password > password is encoded
Like so:
Code: Select all
('$username', PASSWORD('$password'), '$dispName', '$email')";This is just soemthing i was using to see how i could decode it, this isnt the actual way i will go about it
Obviously it doesn't work..
Code: Select all
$query = "SELECT `ziprar_loginPass` FROM `ziprar_users` WHERE `ziprar_loginName` = 'markusn00b'";
$res = mysql_query($query);
while($row = mysql_fetch_array($res)){
echo $row['PASSWORD(ziprar_loginPass)'];
}Thanks