Connection String in Web.configBy default, the DataProtectionConfigurationProvider is configured to use DPAPI with the machine store.To encrypt the connectionStrings section in Web.config 1. Create a new Web site named MachineDPAPI. Make sure that this directory is configured as a virtual directory. 2. Add a Web.config configuration file to this directory. 3. Add a sample connectionString similar.