打开密码保护的ZIP Android中? [英] Open password protected ZIP in Android?

查看:177
本文介绍了打开密码保护的ZIP Android中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个库或一个简单的方法如何打开Android的密码保护的ZIP压缩文件?我知道有不同类型的ZIP加密。我想开一个最简单的,建立在Unix中的拉链-e 命令。同样的文件可以在Windows中打开(这将要求密码)。这应该是标准ZIP 2.0加密?我怎样才能打开它?

is there an library or a simple way how to open a password protected ZIP archive in Android? I know there are different types of ZIP encryption. I would like to open the most simple one, create in Unix with the zip -e command. The same file can be opened in Windows (which will ask for password). That should be the standard ZIP 2.0 encryption? How can I open it?

我搜索了所有办法,但我没有找到任何最终的解决方案。

I search for all alternatives but I didn't find any final solution.

推荐答案

我发现,适用于Android和可DECOM preSS和解密ZIP 2.0文件的.jar库。 http://www.lingala.net/zip4j/download.php

I found a .jar library that works on Android and can decompress and decrypt ZIP 2.0 files. http://www.lingala.net/zip4j/download.php

它的工作对我来说(在Ubuntu中加密的ZIP创建和解密在Android中)。

It worked for me (encrypted ZIP created in Ubuntu and decrypted in Android).

有可能是一个办法把它做没有任何库如下所述: <一href="http://stackoverflow.com/questions/1651442/implementation-of-zipcrypto-zip-2-0-encryption-in-java">Implementation ZipCrypto的/ ZIP在Java 2.0加密,但是我没能得到这个code工作。

There might be a way to get it done without any library as described here: Implementation of ZipCrypto / Zip 2.0 encryption in java, but I was not able to get this code to work.

这篇关于打开密码保护的ZIP Android中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆