?
Solved

asp.net membership question - Hashed passwords cannot be decoded.

Posted on 2011-02-11
1
Medium Priority
?
2,961 Views
1 Endorsement
Last Modified: 2012-05-11
I'm trying to retrieve user passwords for an admin page.  Apparently I've been using hashed passwords.  I'm developing a low security, friendly site, so I don't give a rip about how secure it is.  I read that I need to change my password format.  I tried this by adding passwordFormat="true" in my web.config, but I still get the 'Hashed passwords cannot be decoded.' error on this line:
Line 180:        MembershipUtil.Password = Membership.Provider.GetPassword(MembershipUtil.Username, String.Empty);

Please advise.  Thanks -
1
Comment
Question by:JT_SIRO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
quizwedge earned 1000 total points
ID: 34875770
Your existing users have hashed passwords, so you can't decode them. I found the following response at https://jcbauza.com/forums/p/1076/1270.aspx (though their SSL certificate has expired, so you'll probably get an error)

After a while we discovered what the problem was. The users were created originally by the application using a hashed password. This became an issue as a user with a hash password cannot be migrated automatically to the new encryption setting. So, even though your application is using encryption for the passwords, previously created users will face the issues mentioned before. What we ended up doing was deleting the existing users and creating new ones with the new settings on Web.Config. You could also reset the users and modify a column in the database if deleting them is not an option.
2

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question