hashing passwords
#1

Hello, im using mysql and i need to hash the passwords i tried like this

pawn Code:
format(Query,sizeof(Query),"INSERT INTO `users` (`username` , `password`, `money`, `score`, `bank`, `stat`, `swat`, `army`, `admin`, `cop`, `regdate`, `prison`, `vip`, `arrest`, `surender`, `rob`, `rape`, `heal`, `hitman`, `sales`, `wep` , `drug`, `taze`, `truck`) VALUES ('%s', md5('%s'), '0', '0', '0', '0', '0', '0', '0', '0', '%02d/%02d/%d', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0') ",PlayerName(playerid),EscapedText, Day, Month, Year);
and the 'md5' managed to hash it fine but now i cant login as it says its wrong password
Reply


Messages In This Thread
hashing passwords - by thefatshizms - 27.08.2012, 18:14
Re: hashing passwords - by Kindred - 27.08.2012, 18:23
Re: hashing passwords - by Luke_James - 27.08.2012, 18:24
Re: hashing passwords - by fiki574 - 27.08.2012, 18:27
Re: hashing passwords - by thefatshizms - 27.08.2012, 18:35
Re: hashing passwords - by HuSs3n - 27.08.2012, 18:42
Re: hashing passwords - by thefatshizms - 27.08.2012, 18:44
Re: hashing passwords - by fiki574 - 27.08.2012, 18:52
Re: hashing passwords - by iTorran - 27.08.2012, 22:24
Re: hashing passwords - by ReneG - 27.08.2012, 22:39

Forum Jump:


Users browsing this thread: 2 Guest(s)