MyBB password hash
#3

MyBB code:
PHP код:
function generate_salt()
{
    return 
random_str(8);
}
function 
salt_password($password$salt)
{
    return 
md5(md5($salt).$password);
}

$pass $mybb->input['password'];

$md5pass md5($pass);
$salt generate_salt();

$salted_pass salt_password($md5pass$salt); 
As you can see, $md5pass, which contains a MD5 hash, gets passed to the function salt_password.

So there's your mistake.
Reply


Messages In This Thread
MyBB password hash - by kristo - 20.10.2013, 13:11
Re: MyBB password hash - by kristo - 20.10.2013, 14:24
Re: MyBB password hash - by AndreT - 20.10.2013, 14:53
Re: MyBB password hash - by Smally - 20.10.2013, 14:56
Re: MyBB password hash - by kristo - 20.10.2013, 15:47
Re: MyBB password hash - by kristo - 20.10.2013, 16:04
Re: MyBB password hash - by kristo - 20.10.2013, 18:22
Re: MyBB password hash - by rickisme - 20.10.2013, 18:46
Re: MyBB password hash - by kristo - 20.10.2013, 19:05

Forum Jump:


Users browsing this thread: 2 Guest(s)