我已经加密了值,并尝试使用asp_regiis.exe
.
<configuration>
<connectionStrings
configProtectionProvider="DataProtectionConfigurationProvider">
<EncryptedData>
<CipherData>
<CipherValue>AQAAANCMnd8BFdERjHoAwE/Cl....fK39sbTH</CipherValue>
</CipherData>
</EncryptedData>
</connectionStrings>
</configuration>
当我运行这个命令时:
aspnet_regiis.exe -pdf "connectionStrings" "C:\Users\Test"
我有这个错误:
正在解密配置部分...
无法使用提供程序“DataProtectionConfigurationProvider”解密。来自提供商的错误消息:
Data at the root level is invalid. Line 1, position 1. Failed!
这似乎有什么问题?我需要找到解密的值。请指教。