Encrypt connection string in web config File

Sunil Soni
Posted by Sunil Soni under ASP.NET category on | Points: 40 | Views : 2197
<add keyContainerName="ShyjuMohanKeys"
description="RsaCryptoServiceProvider for encryption and decryption"
name="MyCustomProvider" type="System.Configuration.RsaProtectedConfigurationProvider,System.Configuration, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

In webcon fig File.
Start->Allprograms->Microsoft .Net framework SDK V2.0->SDK Command prompt).Type the following
aspnet_regiis -pc "ShyjuMohanKeys" -exp
aspnet_regiis -pe "connectionStrings" -app "/MywebApplication" -prov "MyCustomProvider"

Comments or Responses

Login to post response