Package org.craftercms.commons.crypto
Interface TextEncryptor
- All Known Implementing Classes:
AesTextEncryptor
,NoOpTextEncryptor
,PbkAesTextEncryptor
public interface TextEncryptor
Thread-safe service that facilitates easy encryption and decryption of text.
- Author:
- avasquez
-
Method Summary
-
Method Details
-
encrypt
Encrypts the specified clear text.- Parameters:
clear
- the clear text to encrypt- Returns:
- the encrypted text
- Throws:
CryptoException
-
decrypt
Decrypts the specified encrypted text.- Parameters:
encrypted
- the encrypted text to decrypt- Returns:
- the clear text
- Throws:
CryptoException
-