public class AesUtil extends SecurityUtil
log| 构造器和说明 |
|---|
AesUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
AesDecryptByBase64Str(String base64String,
byte[] decryptKey)
将base 64 code AES解密
|
static byte[] |
AesDecryptByBytes(byte[] encryptBytes,
byte[] decryptKey)
AES解密
|
static String |
AesEncryptToBase64Str(byte[] content,
byte[] encryptKey)
AES加密为base 64 code
|
static byte[] |
AesEncryptToBytes(byte[] content,
byte[] encryptKey)
AES加密
|
static void |
main(String[] args) |
Base64Decode, Base64Decode, Base64Encodepublic static byte[] AesEncryptToBytes(byte[] content,
byte[] encryptKey)
throws Exception
content - 待加密的内容encryptKey - 加密密钥Exceptionpublic static byte[] AesDecryptByBytes(byte[] encryptBytes,
byte[] decryptKey)
throws Exception
encryptBytes - 待解密的byte[]decryptKey - 解密密钥Exceptionpublic static String AesEncryptToBase64Str(byte[] content, byte[] encryptKey) throws Exception
content - 待加密的内容encryptKey - 加密密钥Exceptionpublic static byte[] AesDecryptByBase64Str(String base64String, byte[] decryptKey) throws Exception
encryptStr - 待解密的base 64 codedecryptKey - 解密密钥ExceptionCopyright © 2020. All rights reserved.