【问题标题】:Encrypt credentials in web.config possible可以在 web.config 中加密凭据
【发布时间】:2012-07-16 01:41:28
【问题描述】:

我有我的 web.config 文件的这一部分。

<system.web>
  <authentication mode="Forms">
    <forms loginUrl="~/Login.aspx">
      <credentials passwordFormat="Clear">
        <user name="test@hotmail.com" password="12345" />
      </credentials>
    </forms>
  </authentication>
</system.web>

我已尝试加密此部分,但我得到对象未设置为对象错误的实例。这是我在加密类中调用的路径:system.web/authentication/forms/credentials

请问有什么解决办法吗?

谢谢。

【问题讨论】:

    标签: encryption credentials


    【解决方案1】:

    如果您使用的是 IIS,请确保您在 IIS 中的站点 ID 设置为 1(高级设置)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-29
      • 2014-11-16
      • 2010-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-08
      • 1970-01-01
      相关资源
      最近更新 更多