[MYSQL]Whirlpool hashing cant get to work
#3

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
pawn Код:
format(string, sizeof(string), "INSERT INTO Users (Name,Password) VALUES ('%s','%s')", APlayerData[playerid][Name], inputtext);
is what you did, not using the hashed password
you would use your hashPassword to save it hashed because you did WP_Hash(hashPassword, 129, inputtext);


format(APlayerData[playerid][Password], 32, "%s", field[2]);
is how/where we store their password from the mysql stuff right?
and
WP_Hash(hashPassword, 129, inputtext);
is where we hash the password they typed

I surmise it would be something like this after you load it...
pawn Код:
if(!strcmp(hashedPassword, field[2], false)) //false being case sensitive
{
    //we load their other stuff / log them in
}
else
{
    //they got it wrong
}
yes thats where its saved...
Reply


Messages In This Thread
[MYSQL]Whirlpool hashing cant get to work - by thimo - 04.02.2012, 18:30
Re: [MYSQL]Whirlpool hashing cant get to work - by [ABK]Antonio - 04.02.2012, 18:40
Re: [MYSQL]Whirlpool hashing cant get to work - by thimo - 04.02.2012, 18:43
Re: [MYSQL]Whirlpool hashing cant get to work - by thimo - 04.02.2012, 19:02
Re: [MYSQL]Whirlpool hashing cant get to work - by thimo - 07.02.2012, 13:34
Re: [MYSQL]Whirlpool hashing cant get to work - by thimo - 14.02.2012, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)