public class CodecUtil extends Object
| 构造器和说明 |
|---|
CodecUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
byteToHexStr(byte mByte)
将字节转换为十六进制字符串
|
static String |
byteToStr(byte[] byteArray)
将字节数组转换为十六进制字符串
|
static String |
createRandom(int count) |
static String |
createUUID() |
static String |
decodeBase64(byte[] bt) |
static String |
decodeBase64(String str) |
static byte[] |
decodeBase64Byte(byte[] bt) |
static byte[] |
decodeBase64Byte(String str) |
static String |
decrptAESBase64(String str)
AES解密
|
static String |
encodeBase64(byte[] bt) |
static String |
encrptAESBase64(String str)
AES加密
|
static String |
encryptMD5(String str) |
static String |
encryptSHA1(String str) |
static String |
urlDecode(String str) |
static String |
urlEncode(String str) |
public static String encodeBase64(byte[] bt)
public static String decodeBase64(byte[] bt)
public static byte[] decodeBase64Byte(byte[] bt)
public static byte[] decodeBase64Byte(String str)
public static String byteToStr(byte[] byteArray)
byteArray - public static String byteToHexStr(byte mByte)
mByte - public static String createRandom(int count)
public static String createUUID()
public static String encrptAESBase64(String str) throws Exception
ExceptionCopyright © 2020. All rights reserved.