Whirlpool hash problem
#7

You insert the password in the database and not the hashed password. It should be:
pawn Code:
new buff[129];
WP_Hash(buff, 129, passwordstring);
format(query1, sizeof(query1), "INSERT INTO playerdata (user, password, Scores, Cash, Admin, Deaths, Nopm, Muted, Vip, Warn, RegisterDate, Jailed, AdminActions, Cookies, Rank, VipTime, Class, PrototypesStolen, KillAsUsaTeam, KillAsGermanyTeam, KillAsItalyTeam, KillAsJapanTeam, KillAsMercTeam, KillAsMexicoTeam, IP) VALUES('%s', '%s', 0, 0, 0, 0, 0, 0, 0, 0, '%s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '%s')", pname, buff, RegDate, GetIP(playerid));
For more information about how to use Whirlpool, read its original thread.

PS: You didn't post the part that loads and checks the password.
Reply


Messages In This Thread
Whirlpool hash problem - by Face9000 - 04.01.2014, 21:20
Re: Whirlpool hash problem - by RedFusion - 04.01.2014, 21:28
Re: Whirlpool hash problem - by Face9000 - 04.01.2014, 21:36
Re: Whirlpool hash problem - by RedFusion - 04.01.2014, 21:42
Re: Whirlpool hash problem - by Face9000 - 04.01.2014, 21:44
Re: Whirlpool hash problem - by RedFusion - 04.01.2014, 21:47
Re: Whirlpool hash problem - by Konstantinos - 04.01.2014, 21:50
Re: Whirlpool hash problem - by Face9000 - 04.01.2014, 21:59
Re: Whirlpool hash problem - by Konstantinos - 04.01.2014, 22:08
Re: Whirlpool hash problem - by Face9000 - 04.01.2014, 22:11
Re: Whirlpool hash problem - by Patrick - 04.01.2014, 22:14
Re: Whirlpool hash problem - by Konstantinos - 04.01.2014, 22:15
Re: Whirlpool hash problem - by Face9000 - 04.01.2014, 22:16
Re: Whirlpool hash problem - by Patrick - 04.01.2014, 22:18
Re: Whirlpool hash problem - by Konstantinos - 04.01.2014, 22:19
Re: Whirlpool hash problem - by Face9000 - 04.01.2014, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)