SgDotNet
Singapore Professional .NET User Group -For Cool Developers

securing connection string app.config vs 2005

rated by 0 users
This post has 2 Replies | 1 Follower

Top 50 Contributor
Posts 61
tuono Posted: 12-28-2005 3:40 PM

hello's, i've found many articles on how to secure the connection string in web.config easily using aspnet_regiis, but i need it for a windows service program and an winforms application.

any good links to see how to do it for app.config?

Top 25 Contributor
Posts 442

System.Configuration.ProtectedConfigurationSection class will do the trick.

http://msdn2.microsoft.com/en-us/library/53tyfkaw.aspx Embarrassed [:$]

System.Configuration.SectionInformation class' ProtectSection method can programmatically encrypt and decrypt the configuration section with your own choice of provider (DPAPI or RSA).

Check this out.

http://msdn2.microsoft.com/en-us/library/system.configuration.sectioninformation.protectsection.aspx

*** http://www.theserverside.net/articles/showarticle.tss?id=NewSecurityFeatures
(Check out the Protecting Configuration part of the article)

The above link show how to use ProtectSection method to encrypt the configuration data.

I will be presenting that in the upcoming UG meeting as well.

Maung Maung

 

Maung Maung
Top 50 Contributor
Posts 61
thanks man!
Page 1 of 1 (3 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems