加密connectionStrings部分 - app.config的实用程序 [英] Encrypting connectionStrings section - utility for app.config
问题描述
有没有一个实用程序将加密命名配置部分(或只是 connectionStrings
部分)在 app.config
文件以类似的方式可以使用 aspnet_regiis
与 web.config
文件?
我知道这可以在代码中完成 - 有代码示例,但我希望避免为此编写一个应用程序。
简而言之,重命名 app.config
文件到 web.config
- 模式是相同的,所以 aspnet_regiis
的作品。完成后重命名为 app.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?
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.
You can try the following:
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的实用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!