udb_hash to whirlpool hash problem
#2

pawn Код:
// Load the password before.
// PlayerInfo[playerid][Password] should be string and be in the enum:

// Password[ 129 ],

new
    buf[ 129 ]
;
WP_Hash( buf, sizeof( buf ), inputtext );
if( !strcmp( buf, PlayerInfo[ playerid ][ Password ], false ) )
{
    // Correct password
}
else
{
    // wrong password
}
Do the same on register.
pawn Код:
new
    buf[ 129 ]
;
WP_Hash( buf, sizeof( buf ), inputtext );
And save the buf.
Reply


Messages In This Thread
udb_hash to whirlpool hash problem - by Uberanwar - 30.08.2013, 11:07
Re: udb_hash to whirlpool hash problem - by Konstantinos - 30.08.2013, 11:19
Re: udb_hash to whirlpool hash problem - by Uberanwar - 30.08.2013, 11:30
Re: udb_hash to whirlpool hash problem - by Konstantinos - 30.08.2013, 11:37
Re: udb_hash to whirlpool hash problem - by Uberanwar - 30.08.2013, 11:58

Forum Jump:


Users browsing this thread: 4 Guest(s)