code: public static boolean areEqual(byte[] array1, byte[] array2) {
  		if (array1.length != array2.length) return false;
  
  		for (int i=0; i<array1.length; ++i)
  			if (array1[i] != array2[i]) return false;
  
  		return true;
  	}
docs: Compares two byte arrays element by element
  @param array1 first array
  @param array2 second array
  @return array1 == array2