Encrypt/Decrypt connection string in app.config

Topics: Cryptography Application Block, Data Access Application Block
Dec 27, 2011 at 11:14 AM
Edited Dec 27, 2011 at 11:14 AM

Dear All,

Is there any way to encrypt and decrypt encrypted connection string in app.config file using enterprise library.

 

regards,

Xeta

Dec 27, 2011 at 11:53 PM

Yes, you can use Enterprise Library to encrypt connection strings.  You would use the configuration tool to encrypt the database settings section (which would also encrypt the connection strings section).  See Encrypting Configuration Data for more information.  Decryption is done automatically by the .NET runtime.

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com