问题描述
有一个实用工具,将加密命名的配置部分(或只是的ConnectionStrings
部分)中的的app.config
以类似的方式,人们可以使用为aspnet_regiis
与的web.config
文件?
Is there a utility that will encrypt a named configuration section (or just the connectionStrings
section) in an app.config
file in a similar manner that one can use aspnet_regiis
with web.config
files?
我知道这可以在code做的 - 有code的例子在那里,但我希望能避免写这个应用程序
I know this can be done in code - there are code examples out there, but I am hoping to avoid writing an application for this.
推荐答案
您可以尝试以下操作:
http://www.dotnetprofessional.com/blog/post/2008/03/03/Encrypt-sections-of-WebConfig-or-AppConfig.aspx
在短期 - 重命名的app.config
文件的web.config
- 该架构是相同的,所以为aspnet_regiis
的作品。重命名回的app.config
时结束。
In short - rename the app.config
file to web.config
- the schema is identical, so aspnet_regiis
works. Rename back to app.config
when finished.
这篇关于加密connectionStrings节 - 实用程序的app.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!