开发者

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 Silverligh开发者_运维问答t.

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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜