I realize that for security that passwords should not be stored in a DB as plaintext. If I hash them, I can validate them for login purposes.
But if I want to set up a password recovery system, what’s the best strategy since there is no undoing of the hashing?
Could someone give me a brief overview of a good and secure strategy for storing and recovering passwords?
You can not recover password that were hashed, neither should you.
What you should do instead is: