public class BouncyCastleAesCbcBytesEncryptor extends 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(String password,
CharSequence salt) |
BouncyCastleAesCbcBytesEncryptor(String password,
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(String password, CharSequence salt)
public BouncyCastleAesCbcBytesEncryptor(String password, CharSequence salt, BytesKeyGenerator ivGenerator)
public byte[] encrypt(byte[] bytes)
BytesEncryptor
public byte[] decrypt(byte[] encryptedBytes)
BytesEncryptor