We are using Enterprise Library version 5 and maintaining the connectionstring in Web.Config.
I have used the below line in DAL and my application was working fine.
Database db = DatabaseFactory.CreateDatabase("USER-PC");
Now I have encrypted the connectionstring with Cryptography Application Blocks Symmetric Algorithm and the connection string will be like
<add name="USER-PC" connectionString="2D2F447DA70A2CF1E1A61F2475B3D7F67592A67ACF108FFE9E08CFCE3C6463B5C175B6E6A5" providerName="System.Data.SqlClient" />
After this change my application is not working because i don't know how to decrypt the connectionstring with the DatabaseFactory.CreateDatabase("USER-PC").
Please help me to get out of this issue...
Ram