4335 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
+11 more
Reaper-Media
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
  • Affiliate Level 2
  • Author Level 5
  • Collector Level 1
  • Weekly Top Seller
+5 more
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
  • 6 Years of Membership
  • Affiliate Level 2
  • Author Level 6
  • Blog Interview
+13 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