23.08.2014, 22:58
Use WP_Hash/WhirlPool
Example(as found in my script)
This then returns the hashed password. To check passwords you'd use,
if(!strcmp(PasswordHash(inputtext), variable, false))
Of-course the variable would be where-ever the users password gets stored. Change inputtext accordingly(since I use dialogs for logging in.)
And for the first warning, you declare file how-ever never use it. Remove it. The other warning just means you assign a variable a value, and never end up using it. It should be noted that none of these warnings will affect anything.
Example(as found in my script)
pawn Код:
stock PasswordHash(value[])
{
new buffer[129];
WP_Hash(buffer,sizeof(buffer),value);
return buffer;
}
if(!strcmp(PasswordHash(inputtext), variable, false))
Of-course the variable would be where-ever the users password gets stored. Change inputtext accordingly(since I use dialogs for logging in.)
And for the first warning, you declare file how-ever never use it. Remove it. The other warning just means you assign a variable a value, and never end up using it. It should be noted that none of these warnings will affect anything.