如何在Java中使用DES算法对zip文件进行加密和解密? [英] How to encrypt and decrypt a zip file using DES algorithm in java?

查看:722
本文介绍了如何在Java中使用DES算法对zip文件进行加密和解密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我必须使用存储在文本文件中的KEY使用DES算法对zip文件进行加密和解密.加密和解密算法都需要从文本文件中获取密钥来执行相应的功能.

请为此算法提供一个Java代码片段.

Hi All,

I have to encrypt and decrypt a zip file using DES Algorithm by using a KEY which is stored in a text file.Both Encrypt and Decrypt algorithm takes key from the text file to do the corresponding functionalities.

Please Give a java code snippts for this algorithm.

推荐答案


请通过以下链接:
http://n3vrax.wordpress.com/2011/07/23/des-algorithm -java-implementation/ [ ^ ]
http://www.java2s.com/Code/Java/Security/DESalgorithm.htm [ ^ ]

祝一切顺利.
--Amit
Hi,
Please go through the links below:
http://n3vrax.wordpress.com/2011/07/23/des-algorithm-java-implementation/[^]
http://www.java2s.com/Code/Java/Security/DESalgorithm.htm[^]

All the best.
--Amit


这篇关于如何在Java中使用DES算法对zip文件进行加密和解密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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