Reverberations

Recovering Forgotten Password

Posted in Coding by Brajesh on June 22nd, 2006

I’m stumped. Is there any way to avoid resetting user’s old password, without storing passwords in plain-text format in database. Usually passwords are stored as one-way hash (e.g. MD5) in the database. WordPress, phpBB, ASP.net - all seem to work this way only.

3 Responses to 'Recovering Forgotten Password'

Subscribe to comments with RSS or TrackBack to 'Recovering Forgotten Password'.

  1. Ron Rothman said, on July 26th, 2006 at 8:32 pm

    i’m afraid not. by definition, a password cannot be recovered if it’s never stored.

    but i’m curious: what don’t you like about resetting passwords?

  2. Brajesh said, on July 26th, 2006 at 9:01 pm

    Ron, thanks for the link. Nice article.

    What I don’t like about resetting passwords - someone else might reset my password.

    Now coming to think of it, resetting password is the lesser evil :) I would never like to store plain-text passwords anyway. plus, the point about insecure emails. Perhaps there is no better solution.

  3. Ron Rothman said, on September 25th, 2006 at 7:34 pm

    Ron, thanks for the link. Nice article.

    Thanks! :)

    What I don’t like about resetting passwords - someone else might reset my password.

    As for someone else resetting your password: typically, a password is not reset automatically. first, an email is sent to the email address on file for the user. that email contains a link which you’d have to click on in order to reset your password. so nobody else could reset your password–unless they also had access to your email, in which case you’d probably have bigger problems to worry about. =)

Leave a Reply