Package com.weicoder.common.crypto.base
Class BaseCrypt
- java.lang.Object
-
- com.weicoder.common.crypto.base.BaseCrypt
-
-
Constructor Summary
Constructors Constructor Description BaseCrypt()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static byte[]doFinal(byte[] b, java.lang.String keys, int len, java.lang.String algorithm, int mode)计算密文protected static byte[]doFinal(byte[] b, java.security.Key key, java.lang.String algorithm, int mode)计算密文
-
-
-
Method Detail
-
doFinal
protected static final byte[] doFinal(byte[] b, java.lang.String keys, int len, java.lang.String algorithm, int mode)计算密文- Parameters:
b- 要计算的字节数组keys- 计算密钥Key 长度有限制 DSE 为8位 ASE 为16位len- 长度一共几位algorithm- 算法mode- 计算模式 加密和解密- Returns:
- 字节数组
-
doFinal
protected static final byte[] doFinal(byte[] b, java.security.Key key, java.lang.String algorithm, int mode)计算密文- Parameters:
b- 要计算的字节数组key- 计算密钥Key 长度有限制 DSE 为8位 ASE 为16位algorithm- 算法mode- 计算模式 加密和解密- Returns:
- 字节数组
-
-