Passwords
#4

Load the hashed password and check if the two strings are equal.

pawn Код:
// Login via dialog (an example)
new hashPassword[129];
WP_Hash(hashPassword, 129, inputtext);

// Let's say PlayerInfo[playerid][pPassword] stores the loaded password.
if(!strcmp(hashPassword, PlayerInfo[playerid][pPassword], false))
{
    // correct password
}
else
{
    // wrong password
}
Reply


Messages In This Thread
Passwords - by mirou123 - 27.08.2013, 21:54
Re: Passwords - by EiresJason - 27.08.2013, 22:01
Re : Passwords - by mirou123 - 27.08.2013, 22:18
Re: Passwords - by Konstantinos - 27.08.2013, 22:27
Re : Passwords - by mirou123 - 27.08.2013, 22:48
Re : Passwords - by mirou123 - 29.08.2013, 15:19
Re: Passwords - by Konstantinos - 29.08.2013, 15:21
Re : Passwords - by mirou123 - 29.08.2013, 15:29
Re: Passwords - by Konstantinos - 29.08.2013, 15:38
Re : Passwords - by mirou123 - 29.08.2013, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)