gpt4 book ai didi

c# - mscorlib 5.0.5.0 中缺少 System.Security.Cryptography.RSA

转载 作者:行者123 更新时间:2023-11-30 17:47:01 25 4
gpt4 key购买 nike

我有一个项目在以下行中抛出错误:

var rsaCrypto = new RSACrypto(1024);


RSACrypto 位于 mscorlib 4.0.0.0System.Security.Cryptography.RSA 中。

但是,mscorlib 5.0.5.0 并非如此(通过对象浏览器确认):

enter image description here

什么给了?如何取回 RSA 以便进行编译?

最佳答案

在问题评论中,@DaveZych 提到 mscorlib [5.0.5.0] 是 Silverlight 5 并且 @PatrickHofman @SLaks 提到 RSA在 Silverlight 中可用。

它们都是正确的,事实证明,它根本不是 mscorlib 程序集引用。

丢失了 DH.Scrypt.dll这是一个集会 Dustin Horne撰写并发布到 http://scrypt.codeplex.com/这样 RSA Cryptography 就可以在 Silverlight 3、4 和 5 中使用。

关于c# - mscorlib 5.0.5.0 中缺少 System.Security.Cryptography.RSA,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25212989/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com