smCoder
smCoder

Reputation: 73

How to encrypt (Connection String) webconfig on deployment? For security reason

I need to encrypt web config when deploy on live server for security reason

Upvotes: 2

Views: 1146

Answers (1)

user1006544
user1006544

Reputation: 1524

There is two way to make your webconfig connection string secure.

1.There is IIS tool aspnet_regiis.exe IIS registration tool which will encrypt your connection string . here is the command

aspnet_regiis.exe -pef "connectionStrings" C:\

drop your web.config in c drive. here is the doc -Aspnet_regiis.exe documentation

  1. Add your connection string on Application_Start . that will also help.

Upvotes: 3

Related Questions