_algorithmParams = DEFAULT_ALGORITHM_PARAMS;
}
testConfiguration(_algorithmParams, _iv);
Base64 base64 = new Base64();
// TODO find a way to avoid decoding each time, maybe context listener
byte[] iv = null;
if (_iv != null)
iv = base64.decode(_iv.getBytes());
if(_cache != null && "false".equals(_cache)){
// secret will have to be decoded and SecretKey will have to
// be generated
byte[] secret = base64.decode(_secret.getBytes());
return symmetric(data, secret, _algorithm, _algorithmParams, iv, mode);
}else{