public static byte[] computeMd5(String k) {
        MessageDigest md5 = md5Local.get();
        if (md5 == null) {
            try {
                md5 = MessageDigest.getInstance("MD5");
                md5Local.set(md5);
            } catch (NoSuchAlgorithmException e) {
                throw new RuntimeException("MD5 not supported", e);
            }
        }
        md5.reset();
        md5.update(k.getBytes(StandardCharsets.UTF_8));
        return md5.digest();
    }
Get the md5 of the given key.
jraft-test/src/main/java/com/alipay/sofa/jraft/test/atomic/HashAlgorithm.java