code: public static String getMD5String(String str) {
          MessageDigest messageDigest = getMessageDigest(MD5);
          return getHashString(str, messageDigest);
      }
docs: Calculate MD5 hash of a String
  
  @param str - the String to hash
  @return the MD5 hash value