Author: kanenas | Posted on: 7/29/2009 3:20:59 PM | Views : 473

Hi experts,
I have class that encrypts and decrypts strings. I used this class in order to encrypt the connection string in my web.config of my asp.net application.
<add name="Connection" connectionString="dG0okelIj25LxTzIwE4Xy1tBrACKa27M48R0AWMj5jb1QlIpFvbV1fdWYJtf7sG0NK+xCOrK51pYxobXBtxvcoFsDrr6y+tw/uc66mQvTeRHW/hPamcwehoP0J/+QjeCpw8oYwl9QIw=" providerName="System.Data.SqlClient"/>
    <add name="SecurityConnection" connectionString="dG0okelIj25LxTzIwE4Xy1tBrACKa27M48R0AWMj5jb1QlIpFvbV1fdWYJtf7sG0NK+xCOrK51pYxobXBtxvcoFsDrr6y+tw/uc66mQvTeRHW/hPamcwehoP0J/+QjeCpw8oYwl9QIw=" providerName="System.Data.SqlClient"/>


I have a configuration class, where I make the decryption:
dbConnectionString = Encryption.Decrypt(ConfigurationManager.ConnectionStrings["Connection"].ConnectionString);
        dbSecurityConne ...

Go to the complete details ...