A lil' help with hashing
#7

If you bothered to read our posts, I suggested you tried to use Cameltoe's code, but update it to work by changing 'inputtext' in the format to 'buffer'

pawn Код:
new buffer[129];
WP_Hash(buffer, sizeof(buffer), inputtext);
format(Query, sizeof(Query), "SELECT * FROM Accounts WHERE Username = '%s' AND Password = '%s';", GetPName(playerid), buffer);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows()) {
// Correct pass
} else {
// Wrong pass
}
mysql_free_result();
Reply


Messages In This Thread
A lil' help with hashing - by Carrot - 11.04.2011, 09:26
Re: A lil' help with hashing - by Cameltoe - 11.04.2011, 09:45
Re: A lil' help with hashing - by Calgon - 11.04.2011, 09:47
Re: A lil' help with hashing - by Cameltoe - 11.04.2011, 09:53
Re: A lil' help with hashing - by Calgon - 11.04.2011, 09:55
Re: A lil' help with hashing - by Carrot - 11.04.2011, 10:07
Re: A lil' help with hashing - by Calgon - 11.04.2011, 10:09
Re: A lil' help with hashing - by Carrot - 11.04.2011, 10:11
Re: A lil' help with hashing - by Carrot - 11.04.2011, 10:41
Re: A lil' help with hashing - by Cameltoe - 11.04.2011, 10:44

Forum Jump:


Users browsing this thread: 2 Guest(s)