Unhashing Passwords for UCP
#8

You would hash the password the user tried using at the UCP:

PHP код:
$hashed_password hash("whirlpool"$_POST["password"]); 
And, after hashing the password they tried using, you would compare it to the value you have in your SQL database.

PHP код:
if($hashed_password == $sql_result["password"])
{
    
// They're a match.

Reply


Messages In This Thread
........ - by NickD - 31.05.2013, 23:44
Re: Unhashing Passwords for UCP - by Kirollos - 31.05.2013, 23:46
Re: Unhashing Passwords for UCP - by DanLore - 31.05.2013, 23:46
Re: Unhashing Passwords for UCP - by iTorran - 31.05.2013, 23:47
........ - by NickD - 31.05.2013, 23:57
Re: Unhashing Passwords for UCP - by DanLore - 01.06.2013, 00:01
Re: Unhashing Passwords for UCP - by nmader - 01.06.2013, 00:41
Re: Unhashing Passwords for UCP - by DanLore - 01.06.2013, 00:47
Re: Unhashing Passwords for UCP - by nmader - 01.06.2013, 00:56
Re: Unhashing Passwords for UCP - by iTorran - 01.06.2013, 01:12

Forum Jump:


Users browsing this thread: 3 Guest(s)