Encrypting app.config File

前端 未结 7 1285
天命终不由人
天命终不由人 2020-11-28 08:56

I have an app.config file that I need to distribute with my application. It was created because of a Service Reference to an ASMX web service I added.

It isn\'t a h

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 09:18

    You can encrypt sections of an App.Config or Web.Config, there's a heap of blog entries which cover this in detail:

    http://www.codeproject.com/KB/dotnet/EncryptingTheAppConfig.aspx

    http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx

    http://msdn.microsoft.com/en-us/library/dtkwfdky.aspx

    http://odetocode.com/blogs/scott/archive/2006/01/08/encrypting-custom-configuration-sections.aspx

    Here's the MSDN version: http://msdn.microsoft.com/en-us/library/89211k9b%28VS.80%29.aspx

    Here's one for how to encrypt via code: http://davidhayden.com/blog/dave/archive/2006/03/14/2883.aspx

提交回复
热议问题