Hi...
I've got a real quick question about md5.
I'm working with a database site with user login, and would like to md5 the user's passwords for security.
However, I've run into a strange problem... and it's probably my own ignorance of precisely how the md5 hashes the password.
I wrote a little script (for testing purposes) where I enter a password and submit it to a second page which then displays the hashed password. I was using this so I could put a generic password in it (like "1234" for example) and then copy and paste that into the database for testing against the login.
Well... when I used the script, I get one result. When I tried to login... I'd get denied. I finaly put a line of code into the login script to display the hashed password... and the hash is completely different than the one in the database that I cut and pasted from my test script.
The interesting thing is that in both cases I was using "1234"... but the test script would display one result, while the login script would display a completely different result.
So... I'm confused. Does md5 hash a password completely different every time? I don't see how that would be possible and return password success from databases. And, if it does NOT, why would I be getting to completely different results while using the same password?