1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to handle encryption decription of connection string ?

Discussion in 'ASP' started by gatewaytl, Oct 15, 2008.

  1. gatewaytl

    gatewaytl New Member

    Joined:
    Oct 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi Friends,

    I have created two functions that encrypt and decrypt the connection string in web.config. But whenever I want to use connection string. I have to always decrypt web.config and then again encrypt it back. Does there any other way which i can use.

    I'm using section.SectionInformation.ProtectSection(" <encryption configuration provider> ") and section.SectionInformation.UnprotectSection()
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Get the encrypted string into some variable and then decrypt that, so that you don't have to modify the web.config
     

Share This Page