MyBB password hash
#1

I'm trying to make a MyBB hash generator but it keeps giving me wrong hashes and cancers.

My function:
pawn Код:
stock HashMyBBPassword(string[], salt[])
{
    new string2[48];
    format(string2, sizeof(string2), "%s%s", MD5_Hash(salt), string);
    string2 = MD5_Hash(string2);
    return string2;
}
Original function (PHP):
PHP код:
function salt_password($password$salt)
{
    return 
md5(md5($salt).$password);

What am I doing wrong?
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: 1 Guest(s)