1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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