I am using the md5 function to encrypt a password for a member app I am building. I have used this before and had no problem. The issue I am having is the md5 seems to be inconsistent. It is being stored in my database like this...
52bb1e9f36af7a64
but when I pull it from the database and echo it out it prints out like this...
52bb1e9f36af7a647ad541f7ec90d5a8
(only doing this for troubleshooting)
it seems to add extra characters to it. Any idea why this might be happening.
the md5 function is being used in two places..
1. when the password gets inserted
2. when the login form gets posted it is used on the $_POST['password'] variable so it matches the password in the database. Any help on this would be great.
Thanks for your time.