4335 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Community Moderator
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Grew a moustache for the Envato Movember competition
+6 more
Reaper-Media Volunteer moderator says
Yes I am sure. Every time I submit the form, no matter what data in the password field, always the exact hash. So what would be the cause of this then?

the only possible cause is, like everyone is saying, $registerPassword must be the same. Show us the code which defines $registerPassword.

Also may i suggest using sha1() instead of md5() because md5 has been broken :-)

753 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Author had a Free File of the Month
  • Exclusive Author
  • Has been a member for 5-6 years
  • Bought between 1 and 9 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
AdamGold says
try to do
var_dump( $registerPassword );
Before you hash it and see what the result is. If it’s what you expect it to be, try a different hash method although I am not sure it will help.
2529 posts
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Blog Editor
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 5-6 years
+6 more
JeffreyWay says

Yep – there is no possible way that multiple values are generating the same hash.

Also, keep in mind that there are more secure methods than MD5 . You might look into something like SHA256 , or something similar.

by
by
by
by
by
by