IT Knowledge Base

Technical Repository

HowTo: Encrypt SQL Server Connection String for ASP.NET

Encrypt ASP.NET connection strings stored in the web.config file using RSA encryption. This is to ensure that connection strings that use SQL authentication and contain usernames and passwords are not stored in plain text. From the command line type in: “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe” -pef “connectionStrings” “C:\inetpub\wwwroot”

Read More