Click here to Skip to main content
15,908,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends...

i have stored password in encrypted form into the web config file beneath identity attribute.
My question is where i have to decrypt it in the web application and how?


<authentication mode="Windows">
<identity impersonate="true" username="domainname/username" password="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAewI1HqfAWUi9c5Yr+jPQpAQAAAACAAAAAAADZg">


I appreciate your help
Posted
Updated 29-Mar-12 0:28am
v3
Comments
Keith Barrow 29-Mar-12 6:33am    
How did you encrypt the password? If you did it using asp.net's IIS registration tool (Aspnet_regiis.exe) you shouldn't have to do any other work.
ZurdoDev 29-Mar-12 8:24am    
You need to explain more. The answer to your question is you need to decrypt it when you need it.

1 solution

I do encryption of password in my security class and store into database, and in my login page i access the respective values from databse if they match with the encrypted value entered by user,no need to decrypt ;)!
 
Share this answer
 
Comments
Keith Barrow 30-Mar-12 14:24pm    
I don't think that this is what the op needs, but it isn't 100% clear what he does need. My understanding is that he needs to encrypt a password (eg for the database itself) in web.config
abhijeetgupta1988 30-Mar-12 14:38pm    
I just shared the scenario of authenticating user as his query was "where to decrypt" the password ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900