Solved password recovery to recover existing password

Posted on 2011-10-27
Last Modified: 2012-05-12
By default it return a new password. How can I return the existing one? Also does the system have an object that when given a username/password validate it?
Question by:glenn_r
    LVL 13

    Expert Comment


    Depend on how password is store, you might be able to return old password or not. There are 3 way password usually stored; clear, hashed or encrypted. If you set the password as hashed then it is no way to reprensent user with old password.

    You might want to read this for clear detail,

    This old tutorial, but will give you great idea on how thing works.

    Author Comment

    Makes sense. What about a programatic method where I could pass in a username/password and have the system authenticate it against application services?
    LVL 13

    Accepted Solution

    There are so many ways you can do it.

    I am using custom code to authenticate user with Active Directory.

    ASP.Net by itself already have Membership Provider that can handle authentication on your behalf using user information from database or other data provider.

    You do not spell out application services that will do authentication.

    Author Comment

    As AppServs is using its own hash/encryption algorhythm the must expose something wher you could pass in the username and password and have it return true of false. No way to develop something externally as I don't know the hash or the encryption logic.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    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…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    732 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

    22 Experts available now in Live!

    Get 1:1 Help Now