public static byte[] computeMd5(final String k) {
        MessageDigest md5;
        try {
            md5 = MessageDigest.getInstance("MD5");
        }
        catch (final NoSuchAlgorithmException e) {
            throw new RuntimeException("MD5 not supported", e);
        }
        md5.reset();
        md5.update(k.getBytes());
        return md5.digest();
    }
Get the md5 of the given key.
metamorphosis-client/src/main/java/com/taobao/metamorphosis/client/consumer/ConsisHashStrategy.java