【问题标题】:how to encrypt data in configurations file other then web.config using aspnet_regiis如何使用 aspnet_regiis 在 web.config 以外的配置文件中加密数据
【发布时间】:2013-09-20 05:08:25
【问题描述】:

在 MVC 项目中,我们有一个 web.config 文件和除此之外的多个配置文件。

我能够使用 aspnet_regiis 加密 web.config 中的连接字符串。您能否指导我如何使用 aspnet_regiis 加密除 web.config 之外的配置文件中的数据?

谢谢

【问题讨论】:

    标签: c# .net web-config aspnet-regiis.exe


    【解决方案1】:

    您不能加密其他文件。您只能加密web.config,或者,如果提供了-pkm 开关,则可以加密machine.config 文件。

    【讨论】:

      猜你喜欢
      • 2014-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-24
      • 1970-01-01
      • 2012-02-05
      • 1970-01-01
      • 2012-10-01
      相关资源
      最近更新 更多