PHP MySQL Retrieving an Encrypted Password using SHA or HASH?

Phil M

New member
In my code to INSERT data into a mysql database I use SHA('password')

If i want to retrieve a ROW of info and one field is password, how do I echo an encrypted password

I tried something like this echo (SHA($row['password'])); and it is wrong.

If you are a coder, all I am trying to do is retrieve a password and have it sent to the user in an email.
Makes sense.. I need to do some reading on RESETTING PASSWORDS! Thanks!
 
Back
Top