public class AESEncryptor extends Object
| Constructor and Description |
|---|
AESEncryptor(String passPhrase) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] encrypt) |
byte[] |
decrypt(byte[] salt,
byte[] iv,
byte[] encrypt) |
String |
decrypt(String salt,
String iv,
String cipher) |
EncryptionResult |
encrypt(byte[] plain) |
EncryptionResult |
encrypt(String encrypt) |
SecretKey |
getKeyFromPassword(String passPhrase) |
SecretKey |
getKeyFromPassword(String passPhrase,
byte[] salt) |
public AESEncryptor(String passPhrase)
public EncryptionResult encrypt(String encrypt) throws Exception
Exceptionpublic EncryptionResult encrypt(byte[] plain) throws Exception
Exceptionpublic String decrypt(String salt, String iv, String cipher) throws Exception
Exceptionpublic byte[] decrypt(byte[] salt,
byte[] iv,
byte[] encrypt)
throws Exception
ExceptionCopyright © 2016. All rights reserved.