public static String md5Hex(Consumer<MessageDigest> digestHandler) {
        return digestHex(md5::get, digestHandler);
    }
@Test
    @SneakyThrows
    public void test() {
        Set<String> check = ConcurrentHashMap.newKeySet();

        for (int i = 0; i < 1000; i++) {
            new Thread(() -> check.add(DigestUtils.md5Hex("test")))
                    .start();
        }
        Thread.sleep(1000);
        System.out.println(check);
        assertEquals(1, check.size());
    }