【发布时间】:2011-01-26 21:00:12
【问题描述】:
加密(“保护”)Microsoft 配置部分时,您会得到类似于以下 XML 的内容。它遵循(至少部分)XML 加密的 W3 规范。
但是,在下面的 XML 中,您会看到 EncryptedData 部分下的 EncryptionMethod 是“tripledes-cbc”。我们希望能够将其更改为更安全的替代方案,特别是 AES,它也在上述 W3 规范中指定。
在与 Microsoft 支持工程师的多次通话中,他们远未理解问题,更不用说回答问题了。有没有办法改变这种加密方式?
我之前忘了提到我们当前设置为 RsaProtectedConfigurationProvider,但似乎只有密钥是用 RSA 加密的,而数据是用 3DES 加密的。
<MiscCryptoData configProtectionProvider="someConfigProtectionProvider">
<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>Rsa Key</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>asf78ag78asg\...cryptoyadayada...asdf8r=</CipherValue>
</CipherData>
</EncryptedKey>
</KeyInfo>
<CipherData>
<CipherValue>zxcv6asdf35...largercryptoyadayada...u7i8o9p=</CipherValue>
</CipherData>
</EncryptedData>
</MiscCryptoData>
【问题讨论】:
标签: .net web-config app-config configuration-files