encode hex string to Base64 string
static String hex2base64(String hex_str) { var bytes = HEX.decode(hex_str); return base64.encode(bytes); }