关于用于压缩文件的免费库的建议 [英] Recommendations on a free library to be used for zipping files

查看:186
本文介绍了关于用于压缩文件的免费库的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要压缩和密码保护文件。是否有一个好的(免费)库?

I need to zip and password-protect a file. Is there a good (free) library for this?

这需要由第三方打开,因此密码保护需要使用标准工具。

This needs to be opened by a third party, so the password protection needs to work with standard tools.

推荐答案

经过多次搜索,我发现了三种方法:

After much searching, I've found three approaches:

A自由可用的源代码集,适用于单个文件zip。但是,没有许可证。用法是AesZipOutputStream.zipAndEcrypt(...)。
http://merkert.de/de/info/zipaes/src.zip
https://forums.oracle.com/ forums / thread.jspa?threadID = 1526137

A freely available set of source code, suitable for a single file zip. However, there is no license. Usage is AesZipOutputStream.zipAndEcrypt(...). http://merkert.de/de/info/zipaes/src.zip (https://forums.oracle.com/forums/thread.jspa?threadID=1526137)

更新:此代码现已获得Apache许可,并以 http://code.google.com/p/winzipaes/ 。它适用于我(zip中的一个文件),并且很好地填补了Java开放源库中的漏洞。

UPDATE: This code is now Apache licensed and released at http://code.google.com/p/winzipaes/ . It worked for me (one file in the zip), and fills a hole in Java's opens source libraries nicely.

商业产品(撰写本文时为500美元)。我无法验证这是否有效,因为他们的试用许可证方法很复杂。它也是一个移植的.NET应用程序:
http://www.nsoftware.com /ipworks/zip/default.aspx

A commercial product ($500 at the time of writing). I can't verify if this works, as their trial license approach is complex. Its also a ported .NET app: http://www.nsoftware.com/ipworks/zip/default.aspx

商业产品(撰写本文时为290美元)。仅适用于Wnidows,因为它使用dll:
http://www.example -code.com/java/zip.asp

A commercial product ($290 at the time of writing). Suitable only for Wnidows as it uses a dll: http://www.example-code.com/java/zip.asp

这篇关于关于用于压缩文件的免费库的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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