public class BouncyCastleAesGcmBytesEncryptor
extends java.lang.Object
AesBytesEncryptor
using
AesBytesEncryptor.CipherAlgorithm.GCM
that uses Bouncy Castle instead of JCE. The
algorithm is equivalent to "AES/GCM/NoPadding".Constructor and Description |
---|
BouncyCastleAesGcmBytesEncryptor(java.lang.String password,
java.lang.CharSequence salt) |
BouncyCastleAesGcmBytesEncryptor(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 BouncyCastleAesGcmBytesEncryptor(java.lang.String password, java.lang.CharSequence salt)
public BouncyCastleAesGcmBytesEncryptor(java.lang.String password, java.lang.CharSequence salt, BytesKeyGenerator ivGenerator)
public byte[] encrypt(byte[] bytes)
BytesEncryptor
public byte[] decrypt(byte[] encryptedBytes)
BytesEncryptor