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