public class AesTextEncryptor extends Object implements TextEncryptor
TextEncryptor that uses AES as it's cipher algorithm and
Base 64 to encode raw bytes.| Constructor and Description |
|---|
AesTextEncryptor(Key key) |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String encrypted)
Decrypts the specified encrypted text.
|
String |
encrypt(String clear)
Encrypts the specified clear text.
|
public AesTextEncryptor(Key key)
public String encrypt(String clear) throws CryptoException
TextEncryptorencrypt in interface TextEncryptorclear - the clear text to encryptCryptoExceptionpublic String decrypt(String encrypted) throws CryptoException
TextEncryptordecrypt in interface TextEncryptorencrypted - the encrypted text to decryptCryptoExceptionCopyright © 2018 CrafterCMS. All rights reserved.