Hi Folks! Have you lost the password for your account (in an ASP.NET application using the Membership)? Look no further. The only caveat is that you need to have access to the application's source-code (we are going to create a method that resets the password and then change it to a known password).

Here's the workaround:

var u = Membership.GetUser("username or login");
if (u != null)
{
    var p = u.ResetPassword();
    u.ChangePassword(p, "new password");
}

Add that code to a method and then call it from somewhere in your application and voilà! There you have it, you just recovered access to an account without having to decrypt your password.