?
Solved

How do I get Password from Membership Object

Posted on 2011-02-11
5
Medium Priority
?
251 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
[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
  • 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
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 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