WP7:如何解压缩 AES-256 加密的 Zip 文件?
我正在尝试在 Windows Phone 7 应用程序上解压缩 AES-256
加密的 zip 文件。 如何才能做到这一点呢?
无论如何,在当前版本的 WP7 中是否可以移植 C++ 库等? 任何指南将不胜感激。
I am trying to decompress an AES-256
encrypted zip file on Windows Phones 7 Application.
How can that be accomplished?
Is there anyway to port C++ libraries or so in the current version of WP7?
Any guide would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
AES256 的计算量非常大,这就是为什么建议将 AES128 及更低版本用于嵌入式(即手机)开发。您会发现,即使是相对较小的文件,解密也需要 3 到 2 秒。
此外,由于实现该算法所涉及的复杂性,示例可能只能在 C 语言中找到(此时您必须移植它)
http://www.codeproject.com/KB/security/aes.aspx
如果您可以在应用程序运行时访问 Web 服务,那么您始终可以编写一个 Web接受加密文件并返回未加密但仍压缩的文件的服务(使用框架 3.5 或 4);但更糟糕的情况是你必须自己移植。如果您确实移植了自己的版本,请将其上传到 codeplex,以便将来的人可以受益:)
AES256 is very compute intensive, this is why AES128 and lower is recommended for embedded (i.e. phone) development. You could find out that it takes 3 to 2 seconds to decrypt even a relativly small file.
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)
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; 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 :)
如果您没有 AES 加密要求,您可以使用 Silverlight SharpZipLib
目前似乎没有任何内容可用,支持 AES-256。您可能需要考虑自己移植一些东西
If you didn't have the AES encryption requirement you could use Silverlight SharpZipLib
There doesn't appear to be anything currently available which support AES-256. You may have to look at porting something yourself
只需进行一些小修改即可在 WP7 上使用 BouncyCastle 库,如 此处。
It's possible to use the BouncyCastle library on WP7 with just a couple small modifications as noted here.