code: public static boolean areEqual(byte[] a, byte[] b) {
          int aLength = a.length;
          if (aLength != b.length) {
              return false;
          }
  
          for (int i = 0; i < aLength; i++) {
              if (a[i] != b[i]) {
                  return false;
              }
          }
          return true;
      }
docs: Compares two byte arrays for equality.
  
  @param a A byte[].
  @param b A byte[].
  @return True if the arrays have identical contents.