What is the point of encrypting the web.config? ASP.NET
问题 Oi, some vendor is telling my bosses that not encrypting the web.config is big security hole. This sounds like bunk to me. I mean, if someone compromises the server aren't we screwed anyways? 回答1: The encryption does not mean that you are protected. The private key needed for decryption is stored on the server, so if your server is compromised your web.config can be decrypted. We only encrypt the connection string section of the web.config. It helps prevent other prying eyes from easily