Hi Everyone,
I just had a few questions about the encryption function crypt(). If I was to do
crypt($_POST['password'],CRYPT_BLOWFISH)
, assuming I had just sent through a password from the form on the previous page it would return an Blowfish encrypted string. If I then used mysql to write it to my database, how, when the user logs in, would I compare the password that they have entered in the login form to the password in the database. If I compared password to the query result from the database I assume it would return that the strings do not match.
My question is how would I go about comparing these two values? Is there a decrypt function that I could use to unencrypt the information from the database so that I could compare the given password with the password in the database?
Thanks in advance for any help, advice or ideas!
Timothy