Click here to Skip to main content
15,918,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
The other day I asked the following questions (Encrypted Connection Strings[^]) about encrypting the connection string within the web.config and the answers didn't really fit what I needed to know.

So let me ask, if you had a consultant coming in and needed to encrypt your web config file how would you do it?
Posted

Hi,
I don't know what is exactly your problem? If you want to encrypt web.config section you can do that easily.
Just use aspnet_regiis.exe[^] tool provided with .NET framework...

If you use google[^] you can find several solutions on first results page and use any solution to solve your task...

If you want to do that from your code then use methods listed here[^] in paragraph named "Programmatically Encrypting Configuration Sections"...

Notice: Make a backup of your web.config before you try this. Just in case... ;)
 
Share this answer
 
v2
 
Share this answer
 

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