code: public static String generateMD5(final byte[] input) {
          try {
              final MessageDigest messageDigest = MessageDigest.getInstance("MD5");
              messageDigest.reset();
              byte[] digest = messageDigest.digest(input);
              return new String(Hex.encodeHex(digest));
          } catch (Exception e) {
              LOG.debug("An error occurred generating the MD5 Hash of the input string", e);
              return null;
          }
      }
docs: Generates a MD5 Hash for a specific byte[]
  
  @param input The byte[] to be converted into an MD5 hash.
  @return The MD5 Hash string of the input string.