private byte[] decrypt(final byte[] data, final String secret)
throws UnsupportedEncodingException {
final String sdata = new String(data, "UTF8");
if(StringUtils.hasText(secret)){
final BeeDesEncrypter chipher = new BeeDesEncrypter(secret);
return chipher.decrypt(sdata);
} else {
return BeeBase64.decode(sdata);
}
}