Posted on: 6/9/2014 4:57:17 AM | Views : 326

Dear,
i have a web.config file in my application which is hosted on a remote server of a hosting company and want to encrypt the connection string in it, since it is hosted on a remote server i cannot access aspnet_regiis to encrypt it, i know i can use WebConfigurationManager.OpenWebConfiguration() method but i dont know when to encrypt the file and when to decrypt it and also where to call the encryption and decryption method like in Global.asax or somewhere else,you can say i want to know where can i encrypt connection string in web.config in a web application deployed on a remote machine ideally for security perspective and how to do it?

Go to the complete details ...