A lil' help with hashing
#2

Why don't you :
pawn Код:
new HashedPW[150];
WP_Hash(HashedPW, sizeof(HashedPW), inputtext);
format(Query, sizeof(Query), "SELECT * FROM Accounts WHERE Username = '%s' AND Password = '%s';", GetPName(playerid),HashedPW); // OR even use any of the mysql's embeded crypt methods.
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows()) // Execute account loading etc.
else // Execute Wrong password etc.
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: 1 Guest(s)