2009-09-20, 12:15 PM
Hi, there.
According to a previous thread at http://community.mybboard.net/thread-33194.html, this is the function MyBB uses to salt its passwords:
However, it doesn't seem to work for me I'm using the MyBB Integrator Class and the array of values come with the encrypted password and the salt. When I print the (already encrypted) password value from the integrator class, it's different from the recreated value.
Did I go wrong somewhere or has the hashing of passwords been updated in MyBB1.4?
Any help'd be greatly appreciated
According to a previous thread at http://community.mybboard.net/thread-33194.html, this is the function MyBB uses to salt its passwords:
function salt($password, $salt)
{
return md5($password . md5($salt));
}
However, it doesn't seem to work for me I'm using the MyBB Integrator Class and the array of values come with the encrypted password and the salt. When I print the (already encrypted) password value from the integrator class, it's different from the recreated value.
// MyBB integrator class
$reg_user = $mybbi->getUser();
// where $reg_user['password'] is the hashed password
echo $reg_user['password'];
echo md5('password' . md5($reg_user['salt']));
Did I go wrong somewhere or has the hashing of passwords been updated in MyBB1.4?
Any help'd be greatly appreciated