-
Website
http://buildingbrowsergames.com -
Original page
http://buildingbrowsergames.com/2008/04/17/building-browsergames-the-registration-page-php/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
gabrielbianconi
1 comment · 1 points
-
Luke
82 comments · 1 points
-
spatlabor
1 comment · 1 points
-
HughCompton
2 comments · 1 points
-
obat jerawat
1 comment · 1 points
-
-
Popular Threads
That's because there exist large hash dictionaries available to hackers which have every word in the dictionary and all common names already pre-hashed using common hashes like MD5. The hacker can search through the list of hashed user passwords for matches in the hash dictionary and then consult the dictionary whenever there is a match to see what word or name was used as the original (unhashed) password. It won't allow them access to accounts where people used strong passwords, but think how many people use the name of a spouse or a common word as a password.
That's why you usually use MD5 in combination with a random "salt" value. You take the user's password (e.g. porcupine), you prepend a randomly generated number or string (e.g. 352) and then MD5 hash that (e.g. 352porcupine => 'alaskdf5...') saving both the randomly generated number and the hash. Then whenever the user submits a password you again prepend the same salt value in front of it and see if it hashes to the same value again. The random value in front of each and every password stored then makes the hash dictionary useless.
I wasn't aware that md5's were vulnerable to rainbow tables - thanks for pointing that out. I'll be sure to write a follow-up post as soon as possible clearing up why you should be doing more than just md5ing your data.
That is what I get when trying to register.
connection to MySQL - double check the values that you passed to
mysql_connect.
Please Help
http://yfrog.com/5sphpadminp
I clicked on User Priviliges so thats why its Orange (I think).
if i run this code and fill in the registration form, after clicking at "register!" theres an error, because page register.php doesnt exist
you saving it? If you're saving it somewhere else you'll want to adjust the
name of the script your form is POSTing to as well.