How can I encrypt sensitive data in the WCF configuration file?

 Posted by Rajni.Shekhar on 4/13/2012 | Category: WCF Interview questions | Views: 4241 | Points: 40

To encrypt sensitive data in WCF configuration file, use aspnet_regiis.exe tool.

Example: If you want to encrypt Connection String section of WCF config file, use -pe that means provider encryption .

aspnet_regiis -pe "connectionStrings" -app "/MachineDPAPI" 

-prov "DataProtectionConfigurationProvider"

-pe means provider encryption of configuration section.
-app means your application's virtual path.
-prov means provider name

For more info:

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response