Encrypting web.config section [ASP.NET 2.0]
-
Hello, How can I encrypt web config section which is outside web.config file? E.g. If I use aspnet_regiis -pef "connectionStrings" "FilePath" -prov "MyProvider", It does encrypt if the section is there inside web.config, but if the section is outside web.config, how can we encrypt that. Is there some way we can achieve this? Thanks and regards, - ashish
-
Hello, How can I encrypt web config section which is outside web.config file? E.g. If I use aspnet_regiis -pef "connectionStrings" "FilePath" -prov "MyProvider", It does encrypt if the section is there inside web.config, but if the section is outside web.config, how can we encrypt that. Is there some way we can achieve this? Thanks and regards, - ashish
Hi Ashish, Use CipherData Class for encrypting it.
With Regards Satips