public class EncryptionUtil
extends Object
-
-
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
EncryptionUtil
public EncryptionUtil()
-
方法详细资料
-
encrypt
- 参数:
data - 要加密的字符串
key - 私钥:
AES固定格式为128/192/256 bits.即:16/24/32bytes。
DES固定格式为128bits,即8bytes。
iv - 初始化向量参数
AES 为16bytes.
DES 为8bytes.
- 返回:
- 抛出:
Exception
-
desEncrypt
解密
- 参数:
dataEncode -
key -
iv -
- 返回:
- 抛出:
Exception