![]() |
Wtf? Password Recovery? MD5? Unreversable? !!
As the title states, I need to ask; how do you make a password recovery when the database MD5's the value? There is no way to reverse MD5, and storing the password as plain-text is not safe... so how do you do it?
|
You just don't..
|
... You kind of need a way to recover passwords, don't you?
|
No. If someone forgets their password, it's better (and the only option) to make a new one.
|
Quote:
|
...Or what a lot of systems do is prompt you for a secret question, and then the question's secret answer. Then when you want to reset the password, you need to answer the question. That then allows you to change your password even if you no longer have access to the email address associated with your account. Then from within the system you will be able to change the email.
|
Its made to be unreversable.
To check passwords use: PHP Code:
|
Quote:
|
Thanks for all of your help! I really didn't even think of a password reset.
|
Quote:
What you do is: 1. Login? 2. Forgot your password? 3. Send a mail with an activation key (perhaps linked to IP) to RESET the password. 4. Reset (with a hash) the password and enter a approx. 12 long string. 5. Send the password to the email together with an activation key. 6. Let the user enter the OLD password, the activation key and then once logged in (or at the activation key page) set their new password intimidate. Most secure and common way to do it I guess. |
I know it's a bit off the original question, but you could try using AES_ENCRYPT / AES_DECRYPT in mysql rather than MD5 for storing passwords, but I totally agree with the members that saying storing a non-reversible password is the best solution.
|
| All times are GMT. The time now is 09:36 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0