加密connectionStrings部分 - app.config的实用程序 [英] Encrypting connectionStrings section - utility for app.config

查看:188
本文介绍了加密connectionStrings部分 - app.config的实用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个实用程序将加密命名配置部分(或只是 connectionStrings 部分)在 app.config 文件以类似的方式可以使用 aspnet_regiis web.config 文件?



我知道这可以在代码中完成 - 有代码示例,但我希望避免为此编写一个应用程序。



http://www.dotnetprofessional.com/blog/post/2008/03/03/Encrypt- section-of-WebConfig-or-AppConfig.aspx



简而言之,重命名 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:

http://www.dotnetprofessional.com/blog/post/2008/03/03/Encrypt-sections-of-WebConfig-or-AppConfig.aspx

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆