public class AESCoder extends CommonCoder
KEY_MD5| 限定符和类型 | 方法和说明 |
|---|---|
static String |
aesDecrypt(String encryptStr,
String decryptKey) |
static String |
aesDecryptByBytes(byte[] encryptBytes,
String decryptKey) |
static String |
aesEncrypt(String content,
String encryptKey) |
static byte[] |
aesEncryptToBytes(String content,
String encryptKey) |
static String |
getRandomKey() |
decodeBase64, encodeBase64, encryptMD5public static String getRandomKey()
public static byte[] aesEncryptToBytes(String content, String encryptKey) throws Exception
Exceptionpublic static String aesEncrypt(String content, String encryptKey) throws Exception
Exceptionpublic static String aesDecryptByBytes(byte[] encryptBytes, String decryptKey) throws Exception
ExceptionCopyright © 2025. All rights reserved.