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
Exception
public EncryptionResult encrypt(byte[] plain) throws Exception
Exception
public String decrypt(String salt, String iv, String cipher) throws Exception
Exception
public byte[] decrypt(byte[] salt, byte[] iv, byte[] encrypt) throws Exception
Exception
Copyright © 2014. All rights reserved.