压缩和加密 [英] Compress and encrypt

查看:86
本文介绍了压缩和加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是一名Java程序员,并且有1年半的经验.有人可以协助我进行以下工作吗?

我需要找到一个可以在Windows,Mac OS和Linux上运行的组件,该组件可以执行以下操作:
压缩文件,然后加密压缩文件.应用程序必须将.dat文件压缩为受密码保护的.zip文件.

示例代码也会对我有帮助.请...

Hi, I am a java programmer and I have 1 and a half years of experience. Could anyone assist me with the following?

I need to find a component that can run in both Windows, Mac OS and Linux that can do the following:
Compress a file then encrypt the compressed file. The application must compress a .dat file to a .zip file that is password protected.

A sample code would help me too. Please...

推荐答案

有一年半的经验,这是您学会如何做的时间了
With one and a half years'' experience it''s about time you learned how to do this[^].


Java SDK提供了用于压缩的两个类(例如,参见 JavaTM密码学扩展(JCE) [
Java SDK provides classes both for compression (see for instance Class Deflater[^]) and encryption (see JavaTM Cryptography Extension (JCE)[^]).


这篇关于压缩和加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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