Solved

How do I get Password from Membership Object

Posted on 2011-02-11
5
243 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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 Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

16 Experts available now in Live!

Get 1:1 Help Now