If I have a password field in a MySQL database administered by PhpMyAdmin and they type of the field is password, how do I encrypt the password from the form the user enters the password in the application so that it matches the password field in the database? I hope that made sense. An example would be:
MySQL password field = 12saqjjDho2034
User entered in form = password
How would I encrypt password to equal the 12saqjjDho2034 that is stored in mySQL?
Thanks for any help.
When you post the password to the verification page would you do md5($_POST['password']?