PHP Forgot Password Function
问题 I have a small community website and I need to implement some sort of forgotten password function. I currently store the passwords in the DB, encrypted with MD5. Is it possible to sort of 'decrypt' and send it to user via email or would I need to have a password reset page? 回答1: An MD5 hashed password is not reversible. (MD5 is hashing, and not really encrypting, so there's a subtle difference). And yes you'll definitely want to provide a password "reset" process (and not simply email the