java包加密 [英] java package for encryption

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

问题描述

我想问一个小问题..
我需要编写使用Java对32位算法加密文本的程序。所以要做的是什么相应的包或库?

I want to ask a small question.. I need to write program that encrypt text with 32-bit algorithm using Java . so what is the appropriate package or library to do that ?

感谢所有

推荐答案

Bob提到的javax.crypto包将是您最好的选择,因为它是Java API的一部分。就这样说,我知道JDK附带的实现(至少对于某些算法和JDK的旧版本)来说相当缓慢。

The javax.crypto package, as Bob mentioned would be your best bet, since it's part of the Java API. With that said, I know that the implementation that comes with the JDK (at least for certain algorithms, and in older version of the JDK) was rather slow.

如果你寻找替代实现(仍然符合javax.crypto规范)看看Bouncy Castle:

If you're looking for alternate implementations (that still comply to the javax.crypto spec) have a look at Bouncy Castle:

http://www.bouncycastle.org/

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

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