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?
System.Configuration.ProtectedConfigurationSection class will do the trick.
http://msdn2.microsoft.com/en-us/library/53tyfkaw.aspx
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