A lil' help with hashing
#4

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
Because you're still hashing inputtext and NOT buffer. Pay some attention, but that method is generally better than the way that you're currently doing, providing you actually format your query to use 'buffer' and not 'inputtext'.
My bad, i got no clue how WP hashes work, though i stated "// OR even use any of the mysql's embeded crypt methods" As of, i would rather Myself use any of the mysql's embeded crypting methods, probably faster and alot easier.

I'll read about Wp, and edit my post.

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
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)