RSACryptoServiceProvider on Windows Phone

Feb 1, 2012 at 8:01 AM

I'm confused because MSDN says that Windows Phone 7.1 supports the RSACryptoServiceProvider, but yet I cannot see/access it in the namespace:

http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider(v=vs.95).aspx



Is the MSDN document just wrong?

Coordinator
Feb 1, 2012 at 2:45 PM
Edited Feb 1, 2012 at 2:47 PM

Interesting.  I actually hadn't looked to see if they added it to Mango.  First, are you sure you're using the correct developer version of the WP7 tools?  And are you sure you've added all the references needed?  There may be a separate cryptography assembly reference that needs to be added to gain access.

The RSACryptoService Provder is in:  mscorlib.Extensions.dll

Feb 7, 2012 at 3:57 AM

Yep, I overlooked the fact that it was in the mscorlib.Extensions.dll. After I added that, everything worked as expected.