public class AESUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.apache.log4j.Logger |
LOG
LOG4j
|
| 构造器和说明 |
|---|
AESUtil() |
public static String decrypt(String decryptStr, String strKey)
decryptStr - 要解密的字符串strKey - key值public static String encrypt(String encryptStr, String strKey)
encryptStr - 要加密的字符串strKey - key值public static byte[] hex2byte(String str)
str - 字符串public static String byte2hex(byte[] bytes)
bytes - 二进制数组Copyright © 2016. All rights reserved.