public String encrypt(String clearText)
{
String cryptedText = null;
try
{
CipherText cipherText = ESAPI.encryptor().encrypt(new PlainText(clearText));
cryptedText = Base64.encodeBytes(cipherText.asPortableSerializedByteArray());
}
catch (EncryptionException e)
{
LOG.error("EsapiEncryptor.encrypt: "+e.getMessage(), e);
}