C# connectionString encryption questions

前端 未结 4 2075
眼角桃花
眼角桃花 2021-01-12 20:56

I am learning how to encrypt the ConnectionString for our C# (3.5) Application. I read the .Net Framwork Developer Guide (http://msdn.microsoft.com/en-us/library/89211k9b(VS

4条回答
  •  耶瑟儿~
    2021-01-12 21:26

    You only have to run the encryption process once. However, after generating the machine key, you need to propagate that in all the machine.config files in the target machines. The machine.config should be located here:

    %FRAMEWORKDIR%\%FRAMEWORKVERSION%\CONFIG

    How To: Configure MachineKey in ASP.NET 2.0 : This link has a section on configuring the config key decryptionKey="AutoGenerate,IsolateApps" validation="SHA1" decryption="Auto" /> and how to share this between machines.

提交回复
热议问题