code: public static String figureIndexedHash(String repositoryHash,
                                             long entryIndex) {
          return String.valueOf((entryIndex + repositoryHash).hashCode());
      }
docs: The writer and the receiver each use this method to figure the hash on
  each journal entry. If the receiver calculates a different hash from the
  one that appears on the entry, it will throw an exception.