public class AesKit extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decrypt(byte[] encrypted,
byte[] aesKey)
decrypt.
|
static byte[] |
decrypt(byte[] content,
String aesTextKey)
decrypt.
|
static String |
decrypt(String content,
String aesTextKey)
decrypt.
|
static String |
decryptToStr(byte[] content,
String aesTextKey)
decryptToStr.
|
static String |
decryptToStr(byte[] content,
String aesTextKey,
String charsetName)
decryptToStr.
|
static byte[] |
encrypt(byte[] content,
byte[] aesKey)
encrypt.
|
static byte[] |
encrypt(byte[] content,
String aesTextKey)
encrypt.
|
static String |
encrypt(String content,
String aesTextKey)
encrypt.
|
static byte[] |
encrypt(String content,
String charsetName,
String aesTextKey)
encrypt.
|
static String |
getAesKey()
getAesKey.
|
static void |
main(String[] args)
main.
|
public static byte[] encrypt(byte[] content,
String aesTextKey)
encrypt.
content - an array of byte objects.aesTextKey - a String object.byte objects.public static byte[] encrypt(String content, String charsetName, String aesTextKey)
encrypt.
public static byte[] decrypt(byte[] content,
String aesTextKey)
decrypt.
content - an array of byte objects.aesTextKey - a String object.byte objects.public static String decryptToStr(byte[] content, String aesTextKey, String charsetName)
decryptToStr.
public static byte[] encrypt(byte[] content,
byte[] aesKey)
encrypt.
content - an array of byte objects.aesKey - an array of byte objects.byte objects.public static byte[] decrypt(byte[] encrypted,
byte[] aesKey)
decrypt.
encrypted - an array of byte objects.aesKey - an array of byte objects.byte objects.Copyright © 2023. All rights reserved.