2 Warnings
#2

Use WP_Hash/WhirlPool

Example(as found in my script)
pawn Код:
stock PasswordHash(value[])
{
    new buffer[129];
    WP_Hash(buffer,sizeof(buffer),value);
    return buffer;
}
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.
Reply


Messages In This Thread
2 Warnings - by Team_PRO - 23.08.2014, 22:53
Re: 2 Warnings - by Abagail - 23.08.2014, 22:58
Re: 2 Warnings - by Adawg - 23.08.2014, 23:01
Re: 2 Warnings - by Team_PRO - 23.08.2014, 23:11

Forum Jump:


Users browsing this thread: 1 Guest(s)