public class BouncyCastleAesCbcBytesEncryptor
extends java.lang.Object
AesBytesEncryptor
using
AesBytesEncryptor.CipherAlgorithm.CBC
that uses Bouncy Castle instead of JCE. The
algorithm is equivalent to "AES/CBC/PKCS5Padding".Constructor and Description |
---|
BouncyCastleAesCbcBytesEncryptor(java.lang.String password,
java.lang.CharSequence salt) |
BouncyCastleAesCbcBytesEncryptor(java.lang.String password,
java.lang.CharSequence salt,
BytesKeyGenerator ivGenerator) |
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] encryptedBytes)
Decrypt the byte array.
|
byte[] |
encrypt(byte[] bytes)
Encrypt the byte array.
|
public BouncyCastleAesCbcBytesEncryptor(java.lang.String password, java.lang.CharSequence salt)
public BouncyCastleAesCbcBytesEncryptor(java.lang.String password, java.lang.CharSequence salt, BytesKeyGenerator ivGenerator)
public byte[] encrypt(byte[] bytes)
BytesEncryptor
public byte[] decrypt(byte[] encryptedBytes)
BytesEncryptor