Password recovery from hash

Hi! How to recover the password from the hash to send it to the user if he forgot it?


you can't. Thats the idea you can only compare it and never knowing what's the real password is.

if you are asking how to implement password reset feature, the idea is that you make the user enter a new password and update the record in the database.

You reset it, not recover.

The password can not be restored. The best option is to generate a new password, change it to the database, and send the user's e-mail with the new password.