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.