code: public static String getHashMD5(byte[] bytes) {
          try {
              MessageDigest md = MessageDigest.getInstance("MD5");
              md.update(bytes, 0, bytes.length);
              byte[] digest = md.digest();
              return toHex(digest);
          } catch (NoSuchAlgorithmException t) {
              throw new RuntimeException(t);
          }
      }
docs: Calculates the MD5 hash of the byte array.
  
  @param bytes
  @return md5 hash of the byte array