public class AesTextEncryptor extends Object implements TextEncryptor
TextEncryptor
that uses AES as it's cipher algorithm and
Base 64 to encode raw bytes.public AesTextEncryptor(Key key)
public String encrypt(String clear) throws CryptoException
TextEncryptor
encrypt
in interface TextEncryptor
clear
- the clear text to encryptCryptoException
public String decrypt(String encrypted) throws CryptoException
TextEncryptor
decrypt
in interface TextEncryptor
encrypted
- the encrypted text to decryptCryptoException
Copyright © 2015 CrafterCMS. All Rights Reserved.