![](/img/trans.png)
[英]Can RSACryptoServiceProvider (.NET's RSA) use SHA256 for encryption (not signing) instead of SHA1?
[英]Use SHA256 Signing XML algorithm in .NET Framework 4.0
我正在尝试使用SHA256
算法签署XML EBICS
文件。 我不能在我的项目中使用.Net Framework 4.5
。
在.NET 4.5
我们可以编写下面的代码,
CryptoConfig.AddAlgorithm(typeof(RSAPKCS1SHA256SignatureDescription), "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");
所以我不知道我怎么能在.Net 4.0
做到这一点
请问你能帮帮我吗?
看看CLR安全性https://clrsecurity.codeplex.com/wikipage?title=Security.Cryptography.dll&referringTitle=Home
RSAPKCS1SHA256SignatureDescription类已在该程序集中实现,内置于.NET 3.5中,因此必须在.NET 4.0中运行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.