System.Security.Cryptography.RSA is missing from mscorlib 5.0.5.0

I have a project that is throwing an error on the following line:

var rsaCrypto = new RSACrypto(1024);

      


RSACrypto

was located in System.Security.Cryptography.RSA

mscorlib 4.0.0.0 .

However, this is not the case: mscorlib 5.0.5.0 (verified via the Object Browser):

enter image description here

What gives? How do I get RSA back so I can compile?

+3


source to share


1 answer


In the comments of the question @DaveZych mentioned that mscorlib [5.0.5.0] is Silverlight 5 and @PatrickHofman and @SLaks noted that it is RSA

not available in Silverlight.

They are all correct, and as it turns out, this is not an assembly reference at all mscorlib

.



DH.Scrypt.dll , which is the assembly that Dustin Horne wrote and published at http://scrypt.codeplex.com/ , was missing so that RSA Cryptography could be used in Silverlight 3, 4, and 5.

+1


source







All Articles