I think that you would might want be interested in consistency checking, there are many options for that, most standard (sorting by simplicity) include: checksum, crc32, md5 and sha1.

Just to give...