Problem, saving data into mysql, WPHash
#1

By using WP_Hash it doesn't store data into mysql table, its working fine without wp_hash but i need to hold passwords encrypted.
pawn Code:
if(dialogid == 0)
    {
        if(response)
        {
            CheckMySQL();
            new string[256],password[256];
            WP_Hash(password,sizeof(password),inputtext);
            if(strlen(inputtext) < 3 || strlen(inputtext) >= 32) return SendClientMessage(playerid,COLOR_WHITE,"Parool on liiga lьhike vхi liiga pikk.");
            format(string,sizeof(string),"INSERT INTO kasutaja (nimi,parool) VALUES ('%s','%s')",UserStats[playerid][nimi],password);
            mysql_query(string);
            AccountExists[playerid] = 1;
            SendClientMessage(playerid,COLOR_GREEN,"Kasutaja on registreeritud.");
            SavePlayer(playerid);
            mysql_free_result();
        }
    }
Reply
#2

Anyone?
*bump*

Edit: nvm, works fine with md5, fixed .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)