Hash { public static String md5Hex(byte[] value) { return hash(value, "MD5"); }  static String md5Hex(byte[] value); static String md5Hex(String value); static String sha1Hex(byte[] value); static String sha1Hex(String value); static String sha256Hex(byte[] value); static String sha256Hex(String value);  }
@Test void md5Hex() { assertThat(Hash.md5Hex("")).isEqualTo("d41d8cd98f00b204e9800998ecf8427e"); assertEquals("26b17225b626fb9238849fd60eabdf60", Hash.md5Hex("+")); assertEquals("202cb962ac59075b964b07152d234b70", Hash.md5Hex("123")); }