| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
SALTED |
| Constructor and Description |
|---|
AbstractAes256() |
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
_decrypt(byte[] data,
byte[] passphrase)
Internal decrypt function
|
protected static byte[] |
_encrypt(byte[] input,
byte[] passphrase)
Internal encrypt function
|
protected static byte[] |
concat(byte[] a,
byte[] b)
Concatenate bytes
|
protected static Object[] |
deriveKeyAndIv(byte[] passphrase,
byte[] salt)
Derive key and iv
|
protected static byte[] _encrypt(byte[] input,
byte[] passphrase)
throws Exception
input - Input text to encryptpassphrase - The passphraseException - Throws exceptionsprotected static byte[] _decrypt(byte[] data,
byte[] passphrase)
throws Exception
data - Text in bytes to decryptpassphrase - The passphraseException - Throws exceptionsprotected static Object[] deriveKeyAndIv(byte[] passphrase, byte[] salt) throws Exception
passphrase - Passphrasesalt - SaltException - Throws exceptionsprotected static byte[] concat(byte[] a,
byte[] b)
a - First arrayb - Second arrayCopyright © 2019. All rights reserved.