Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the MD5 value of a string

807569May 24 2006 — edited May 24 2006
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2006
Added on May 24 2006
2 comments
299 views