public class AES extends Object
| Constructor and Description |
|---|
AES() |
| Modifier and Type | Method and Description |
|---|---|
static String |
base64(byte[] bytes) |
static byte[] |
base64(String str) |
static String |
decrypt(@NotNull String payload) |
static String |
decrypt(String salt,
String iv,
String ciphertext) |
static String |
encrypt(@NotNull String payload) |
static String |
encrypt(String salt,
String iv,
String plaintext) |
static String |
hex(byte[] bytes) |
static byte[] |
hex(String str) |
static String |
random(int length) |
public static String encrypt(@NotNull @NotNull String payload) throws IOException, BadPaddingException, IllegalBlockSizeException, InvalidKeyException
public static String decrypt(@NotNull @NotNull String payload) throws IOException, BadPaddingException, IllegalBlockSizeException, InvalidKeyException
public static String random(int length)
public static String base64(byte[] bytes)
public static byte[] base64(String str)
public static String hex(byte[] bytes)
public static byte[] hex(String str)
Copyright © 2026. All rights reserved.