Class AesTextEncryptor
java.lang.Object
org.craftercms.commons.crypto.impl.AesTextEncryptor
- All Implemented Interfaces:
TextEncryptor
Implementation of
TextEncryptor
that uses AES as it's cipher algorithm and
Base 64 to encode raw bytes.- Author:
- avasquez
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AesTextEncryptor
-
-
Method Details
-
encrypt
Description copied from interface:TextEncryptor
Encrypts the specified clear text.- Specified by:
encrypt
in interfaceTextEncryptor
- Parameters:
clear
- the clear text to encrypt- Returns:
- the encrypted text
- Throws:
CryptoException
-
doEncrypt
- Throws:
CryptoException
-
decrypt
Description copied from interface:TextEncryptor
Decrypts the specified encrypted text.- Specified by:
decrypt
in interfaceTextEncryptor
- Parameters:
encrypted
- the encrypted text to decrypt- Returns:
- the clear text
- Throws:
CryptoException
-
doDecrypt
- Throws:
CryptoException
-