public static String sha512Hex(final String data) {
        return Optional.ofNullable(data).filter(StringUtils::isNoneEmpty).map(item -> {
            try {
                return org.apache.commons.codec.digest.DigestUtils.sha512Hex(data);
            } catch (Exception e) {
                throw new ShenyuException(e);
            }
        }).orElse(null);
    }
@Test
    public void testSha512Hex() {
        assertThat(DigestUtils.sha512Hex("123456"),
                is("ba3253876aed6bc22d4a6ff53d8406c6ad864195ed144ab5c87621b6c233b548baeae6956df346ec8c17f5ea10f35ee3cbc514797ed7ddd3145464e2a0bab413"));
    }