public class AesKit extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decrypt(byte[] encrypted,
byte[] aesKey) |
static byte[] |
decrypt(byte[] content,
String aesTextKey) |
static String |
decryptToStr(byte[] content,
String aesTextKey) |
static String |
decryptToStr(byte[] content,
String aesTextKey,
String charsetName) |
static byte[] |
encrypt(byte[] content,
byte[] aesKey) |
static byte[] |
encrypt(byte[] content,
String aesTextKey) |
static byte[] |
encrypt(String content,
String aesTextKey) |
static byte[] |
encrypt(String content,
String charsetName,
String aesTextKey) |
static String |
genAesKey() |
public static String genAesKey()
public static byte[] encrypt(byte[] content, String aesTextKey)
public static byte[] decrypt(byte[] content, String aesTextKey)
public static String decryptToStr(byte[] content, String aesTextKey, String charsetName)
public static byte[] encrypt(byte[] content, byte[] aesKey)
public static byte[] decrypt(byte[] encrypted, byte[] aesKey)
Copyright © 2018. All rights reserved.