public class Aes256 extends AbstractAes256
SALTED| Constructor and Description |
|---|
Aes256() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decrypt(byte[] crypted,
byte[] passphrase)
Decrypt encrypted base64 encoded text in bytes
|
static String |
decrypt(String crypted,
String passphrase)
Decrypt encrypted base64 encoded text in bytes
|
static byte[] |
encrypt(byte[] input,
byte[] passphrase)
Encrypt text in bytes with the passphrase
|
static String |
encrypt(String input,
String passphrase)
Encrypt text with the passphrase
|
_decrypt, _encrypt, concat, deriveKeyAndIvpublic static String encrypt(String input, String passphrase) throws Exception
input - Input text to encryptpassphrase - The passphraseException - Throws exceptionspublic static byte[] encrypt(byte[] input,
byte[] passphrase)
throws Exception
input - Input data in bytes to encryptpassphrase - The passphrase in bytesException - Throws exceptionspublic static String decrypt(String crypted, String passphrase) throws Exception
crypted - Text in bytes to decryptpassphrase - The passphrase in bytesException - Throws exceptionsCopyright © 2019. All rights reserved.