public class AES extends Object
| Constructor and Description |
|---|
AES() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] encryptedData,
byte[] key,
byte[] iv) |
static byte[] |
encrypt(byte[] data,
byte[] key,
byte[] iv) |
static byte[] |
generateIV() |
static byte[] |
generateKey() |
static byte[] |
generateKey(String password) |
public static byte[] decrypt(byte[] encryptedData,
byte[] key,
byte[] iv)
throws IllegalBlockSizeException,
BadPaddingException
public static byte[] encrypt(byte[] data,
byte[] key,
byte[] iv)
public static byte[] generateIV()
public static byte[] generateKey()
public static byte[] generateKey(String password)
Copyright © 2020. All rights reserved.