### Question:
Cryptography { public static String md5(String message) { try { MessageDigest md = MessageDigest.getInstance("MD5"); byte[] messageDigest = md.digest(message.getBytes()); BigInteger number = new BigInteger(1, messageDigest); String hashtext = number.toString(16); return hashtext; } catch (NoSuchAlgorithmException e) { return ""; } }  static String md5(String message);  }### Answer:
@Test public void md5() { String result = Cryptography.md5("test"); Assert.assertEquals(result, "98f6bcd4621d373cade4e832627b4f6"); }