I have connection strings in a web configuration file:
<connectionStrings>
<add name = "ConString2" connectionString = "Data Source = testdb; Persist Security Info = True; User ID = test; Password = test; Unicode = True;" providerName = "System.Data.OracleClient" />
<add name = "ConString3" connectionString = "Data Source = testdb; Persist Security Info = True; User ID = test; Password = test; Unicode = True;" providerName = "Oracle.DataAccess.Client" />
</connectionStrings>
I want to save the connection string in an encrypted format, and when I use to extract data from the database, I want to decrypt the connection and connect to the database.
source
share