MD5
Hey,
I've had two, similar strange experiences with MD5-encryption. I'm currently testing and developing an application, with users and passwords and stuff. In the 'add new user'-section, I've got two password fields. In 'processnewuser.jsp' I compared MD5-hash 1 to MD5-hash 2, coming out of the form fields 'password' and 'password confirmation' respectively. Those MD5-hashesnever matched, while I was certain the words were similar.
That's the first strange thing.
Secondly, I had a word transformed to an MD5-hash, to manually add in into the database, so I could save time by not completing the whole 'add new user'-form. So, for example, I convert the word 'hello', which results in 'DK428DK9DH492' or whatsoever, I insert the hash into the database, login with 'hello' and the corresponding username, but it fails to login because the password is incorrect. I.e., the hashes simply didn't match.
What's my problem?
Thanks in advance!

