public class AESUtil extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AESUtil.CIPHER |
| 构造器和说明 |
|---|
AESUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
decrypt(AESUtil.CIPHER cipher,
String password,
String content) |
static String |
decrypt(AESUtil.CIPHER cipher,
String password,
String vector,
String content)
AES 解密操作
|
static String |
decrypt(String password,
String content) |
static String |
decrypt(String password,
String vector,
String content) |
static String |
encrypt(AESUtil.CIPHER cipher,
String password,
String content)
AES 加密操作
|
static String |
encrypt(String password,
String content) |
public static String encrypt(AESUtil.CIPHER cipher, String password, String content)
cipher - ciphercontent - content 待加密内容password - password 加密密码public static String decrypt(AESUtil.CIPHER cipher, String password, String vector, String content)
vector - vectorcipher - ciphercontent - contentpassword - passwordpublic static String decrypt(AESUtil.CIPHER cipher, String password, String content)
Copyright © 2022. All rights reserved.