Solved

How do I get Password from Membership Object

Posted on 2011-02-11
5
242 Views
Last Modified: 2012-05-11
Does the MembershipUser object contain the users Password?  I need to display usernames and passwords on an admin page and can't seem to find it.

            MembershipUtil MembershipUtil = new MembershipUtil();
            MembershipUtil.Username = usr.UserName;

When I try MembershipUtil.Username = usr.Password;  - It fails because there is no Password.  Please advise.  thx -


0
Comment
Question by:JT_SIRO
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:MISOperations
ID: 34874373
You cannot view users passwords, they are encrypted for the protection of the user.
0
 

Author Comment

by:JT_SIRO
ID: 34874961
I was hoping I wouldn't get that response.  So what am I supposed to do?  I need to be able to look up passwords easily.  
0
 
LVL 6

Expert Comment

by:MISOperations
ID: 34875378
The users need to remember their information, backup the system as a whole, you cannot access their passwords though.
0
 

Author Comment

by:JT_SIRO
ID: 34875529
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 125 total points
ID: 34876099
@MISOperations - dishing out slightly inaccurate information there :)

You have three options with regards to passwords with membership, they can be stored in plain text, hashed, or encrypted formats. Whether or not you can retrieve them depends on which method you are using. The only one that you can't retrieve them with is Hashed, as hashing is a one way mechanism. If they are encrypted, they can also be de-crypted and can therefore be retrieved.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now