code: public static boolean isEqual(byte ba1[], byte ba2[]) {
  		if(ba1.length!=ba2.length)return false;
  		for(int i = 0;i<ba1.length; ++i) {
  			if(ba1[i]!=ba2[i])return false;
  		}
  		return true;
  	}
docs: Compare two byte arrays for equivalency
  @param ba1
  @param ba2
  @return