public static String hexDecode(final String data) {
        if (StringUtils.isNotBlank(data)) {
            return hexDecode(data.toCharArray());
        }
        return null;
    }
Hex decode string.

@param data the data
@return the string
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java