Asp.net 使用RSA加密web.config
当我使用aspnet_regis对web.config进行加密时,初始行显示Asp.net 使用RSA加密web.config,asp.net,encryption,web-config,Asp.net,Encryption,Web Config,当我使用aspnet_regis对web.config进行加密时,初始行显示 configProtectionProvider="RsaProtectedConfigurationProvider" 后来它说 <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" /> 在那之后,它说 <EncryptedKey xmlns="http://www.w3.org/2001/
configProtectionProvider="RsaProtectedConfigurationProvider"
后来它说
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
在那之后,它说
<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
我很困惑,当提供程序是RsaProtectedConfigurationProvider类型时,为什么会有tripledes行 您是否首先创建了要使用的密钥
下面是一个如何执行此操作的示例,向下滚动到web场场景:这是用于在webconfig中加密方法rsaptectedConfigurationProvider的事件序列
<appSettings configProtectionProvider="RsaProtectedConfigurationProvider">
<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>XXXXXX</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>GW5cBFyCHZxAmSTGf+eKfIQmi7Vy450CGKEnMk8nJBW+3w0R4QZAEyneaZ0=</CipherValue>
</CipherData>
</EncryptedKey>
</KeyInfo>
<CipherData>
<CipherValue>vH3V+KnNRAc9ps+AhzrrFf2HABiqI/dlnYCCDE+wxoUZ4CoVReswbyTKU4ZybcuxmUwV2z5kUNaAQ8Rmei3IsN7VRx7pVXjDtOT4osA0Jc</CipherValue>
</CipherData>
</EncryptedData>