Re: Windows App .NET 2.0: Encryption of Connection Strings
From: Henrik Skak Pedersen (someone_at_news.com)
Date: Sat, 12 Nov 2005 11:32:03 +0100
Thank you very much for your reply, that was just what I needed. I have a
some extra questions.
1) Which rights should the user have on the machine to be able to encrypt?
2) I have tried to run the code for different users on the machine and they
all seems to be able to decrypt the connection string, no matter which user
that have encrypted it. Is the section encrypted on a machine level?
3) I guess that I protect all kinds of configuration sections?
4) Can I use it on configurations save in isolated storage?
5) I guess that I also can use the RSAProtectedConfigurationProvider
provider. Would I ever have to use this provider in a Windows application?
"Dominick Baier [DevelopMentor]" <email@example.com>
wrote in message news:firstname.lastname@example.org...
> Hello Henrik,
> something like this:
> static void Main(string args)
> Configuration config =
> ConnectionStringsSection s = config.ConnectionStrings;
> s.SectionInformation.ForceSave = true;
> Dominick Baier - DevelopMentor
>> I have found a lot of articles explaining how to encrypt configuration
>> strings in ASP.NET 2.0, but none explaining how to do it in Windows
>> I would like to encrypt the connection strings in an application which
>> I am deploying to multiple customers. The customer enter db-connection
>> information themselves and I have to encrypt it afterwards. I have to
>> support both trusted connections and sql authentication.
>> Any ideas?
>> Henrik Skak Pedersen