From 442f30e0c01f4f41fcde490870c565d0de83028e Mon Sep 17 00:00:00 2001 From: Gzx_GCP_client Date: Sun, 25 Feb 2024 23:51:36 +0800 Subject: [PATCH] del md5sum function --- src/com/olxpbenchmark/util/StringUtil.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/com/olxpbenchmark/util/StringUtil.java b/src/com/olxpbenchmark/util/StringUtil.java index 72836c7..71d2e68 100644 --- a/src/com/olxpbenchmark/util/StringUtil.java +++ b/src/com/olxpbenchmark/util/StringUtil.java @@ -102,25 +102,6 @@ public static String header(String msg, String marker, int length) { return String.format("%s %s %s%s", border, msg, border, (add_extra ? marker : "")); } - /** - * Return the MD5 checksum of the given string - * - * @param input - * @return - */ - public static String md5sum(String input) { - MessageDigest digest = null; - try { - digest = MessageDigest.getInstance("MD5"); - } catch (NoSuchAlgorithmException ex) { - throw new RuntimeException("Unable to compute md5sum for string", ex); - } - assert (digest != null); - digest.update(input.getBytes()); - BigInteger hash = new BigInteger(1, digest.digest()); - return (hash.toString(16)); - } - /** * Split the multi-lined strings into separate columns *