public class AESEncryptUtil extends Object
| 构造器和说明 |
|---|
AESEncryptUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decrypt(byte[] content,
String password)
解密
|
static byte[] |
encrypt(String content,
String password)
加密
|
static byte[] |
encrypt2(String content,
String password)
加密
|
static void |
main(String[] args) |
static String |
parseByte2HexStr(byte[] buf)
将二进制转换成16进制
|
static byte[] |
parseHexStr2Byte(String hexStr)
将16进制转换为二进制
|
public static byte[] encrypt(String content, String password)
content - 需要加密的内容password - 加密密码public static byte[] decrypt(byte[] content,
String password)
content - 待解密内容password - 解密密钥public static String parseByte2HexStr(byte[] buf)
buf - public static byte[] parseHexStr2Byte(String hexStr)
hexStr - public static byte[] encrypt2(String content, String password)
content - 需要加密的内容password - 加密密码public static void main(String[] args) throws UnsupportedEncodingException
Copyright © 2020 GTMAP. All rights reserved.