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

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

问题描述

有没有一个图书馆或一个简单的方式如何在Android中打开受密码保护的ZIP存档?我知道有不同类型的ZIP加密。我想打开最简单的一个,使用 zip -e 命令在Unix中创建。可以在Windows中打开相同的文件(这将要求密码)。那应该是标准的ZIP 2.0加密?我如何打开?



我搜索所有替代品,但没有找到任何最终解决方案。

解决方案

我发现一个在Android上工作的.jar库,可以解压缩和解密ZIP 2.0文件。
http://www.lingala.net/zip4j/download.php



它适用于我(在Ubuntu中创建的加密ZIP,并在Android中解密)。



可能有一种方法可以完成没有任何图书馆的描述:
在Java中实现ZipCrypto / 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.

解决方案

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

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

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.

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

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