Home All Groups Group Topic Archive Search About

Howto encrypt configuration sections using Enterprise Library ?

Author
21 Nov 2006 1:29 PM
dragoncino
Hello to everybody,
I need to encrypt the dataConfiguration or connectionStrings section of
the app.config file (using Enterprise Libary January 2006).
On some sources on internet (e.g.:
http://msdn.microsoft.com/msdnmag/issues/05/07/DataPoints/) I have
found that there is the possibility to encrypt connections strings used
by the Enterprise Library Data Applicatin Block.
On that article, it is said that you should use the attribute
encrypt="true" to encrypt a section or the whole file using a symmetric
algorithm. Unfortunately, I'm not able to find the same feature on the
version of Enterprise Library we are using (MS Enterprise Library -
January 2006), so I suppose that the feature has been moved somewhere
else.
Does anybody has an idea of how to encrypt the connection strings
section using the Enterprise Library?
Thanks

Fabrizio

Author
22 Nov 2006 5:31 AM
shawn
hi dragoncino:
    if you use asp.net 2.0, why don't you try to encrypt the connection
string or other sensitive configuration elements with the "aspnet_regiis
-pe".
you could refer to  MSDN: "Encrypting and Decrypting Configuration
Sections "

ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_aspnetcon/html/eb5dee1e-f6ac-4b16-bc2c-32c1e8cd9341.htm