Maestro
Maestro

Reputation: 9518

Cryptography / Compression in Silverlight

I'm porting my application from WPF to Silverlight. The biggest problem is that my application uses RSA encryption and Deflate compression, and both classes are not available in Silverlight.

I know that you can view the sourcecode of any .NET class using reflection, so would it be possible to just 'decompile' the RSACryptoService class, and re-use that code for Silverlight (provided the algoritm doesn't use any classes that are missing in SL)?

Or what would be the best solution? I know I can write my own RSA/Deflate algoritms, but it seems to make sense to re-use the source of the WPF classes when possible.

Upvotes: 1

Views: 302

Answers (2)

CodesInChaos
CodesInChaos

Reputation: 108830

DotNetZip has compression streams, and I think they are even binary compatible with the built in deflate stream.

Upvotes: 0

Dustin Horne
Dustin Horne

Reputation: 36

RSA in Silverlight: http://scrypt.codeplex.com

Upvotes: 2

Related Questions