Ok, I'm haveing a bit of a problem with a login for a website I'm building.
So I set users up in a mysql datebase with a user name and password. the password is put into an MD5 hash table so Password = 8569854hth75t56ht8ygt89 or some crazy string.
"INSERT INTO passTable( Username, Password ) VALUES ('"+Username +"', MD5('"+Password+"'))";
But I'm having trouble when the user puts in there Password as a string in a HTML form that goes to a servlet, how do I turn the string "Password" into a value such as "8569854hth75t56ht8ygt89" in order to compare it to what I have in the datebase????
Any ideas? P.S i'm not a very good programmer at all.