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
Constructors -
Method Summary
-
Constructor Details
-
AesTextEncryptor
-
-
Method Details
-
encrypt
Description copied from interface:TextEncryptorEncrypts the specified clear text.- Specified by:
encryptin interfaceTextEncryptor- Parameters:
clear- the clear text to encrypt- Returns:
- the encrypted text
- Throws:
CryptoException
-
doEncrypt
- Throws:
CryptoException
-
decrypt
Description copied from interface:TextEncryptorDecrypts the specified encrypted text.- Specified by:
decryptin interfaceTextEncryptor- Parameters:
encrypted- the encrypted text to decrypt- Returns:
- the clear text
- Throws:
CryptoException
-
doDecrypt
- Throws:
CryptoException
-