30.11.2012, 19:50
Hey guys, I'm having this problem which is that I can login with any password. Here is the code:
As you can see I'm using WhirlPool + y_ini.
WhirlPool works perfectly I've made a debug to show me if it hashed the inputtext or not and it did.
pawn Code:
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
if(strcmp(hashpass,PlayerInfo[playerid][Pass]) == 0)
{
//Login user..etc
}
else
{
//Give error
}
WhirlPool works perfectly I've made a debug to show me if it hashed the inputtext or not and it did.