简体   繁体   English

WP7:如何解压缩AES-256加密的Zip文件?

[英]WP7: How to Decompress an AES-256 Encrypted Zip File?

I am trying to decompress an AES-256 encrypted zip file on Windows Phones 7 Application. 我正在尝试在Windows Phone 7应用程序上解压缩AES-256加密的zip文件。 How can that be accomplished? 如何做到这一点?

Is there anyway to port C++ libraries or so in the current version of WP7? 无论如何,在当前版本的WP7中是否可以移植C ++库? Any guide would be greatly appreciated. 任何指南将不胜感激。

If you didn't have the AES encryption requirement you could use Silverlight SharpZipLib 如果您没有AES加密要求,则可以使用Silverlight SharpZipLib

There doesn't appear to be anything currently available which support AES-256. 目前似乎没有任何东西可以支持AES-256。 You may have to look at porting something yourself 您可能需要自己考虑移植一些东西

AES256 is very compute intensive, this is why AES128 and lower is recommended for embedded (ie phone) development. AES256占用大量计算资源,这就是为什么建议在嵌入式(即电话)开发中使用AES128及更低版本的原因。 You could find out that it takes 3 to 2 seconds to decrypt even a relativly small file. 您可能发现解密甚至是相对较小的文件也需要3到2秒钟。

Furthermore because of the complexity involved in implementing the algo, examples might only be found in C (at which point you'll have to port it) 此外,由于实现算法所涉及的复杂性,可能只能在C语言中找到示例(此时必须将其移植)

http://www.codeproject.com/KB/security/aes.aspx http://www.codeproject.com/KB/security/aes.aspx

If you have access to web services while the application is running, then you could always write a web service (using framework 3.5 or 4) that accepts the encrypted file and returns the unencrypted, yet still compresed file; 如果在应用程序运行时可以访问Web服务,则可以始终编写Web服务(使用框架3.5或4),该服务接受加密的文件并返回未加密但仍受压缩的文件; but yes worse case is that you'll have to port your own. 但是,更糟糕的情况是,您必须自己移植。 If you do port your own please upload it on codeplex so that future persons can benifit :) 如果您自己移植,请将其上传到Codeplex上,以便将来的人们受益:)

它可以使用WP7上的BouncyCastle的库只是一对夫妇的小修改注意到这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM