I want to compare two files in two different network locations. The files can be several GB in size and sometime the file location can be separated by slow WAN.
I know how to generate SHA1 hashes in Python, but I heard of a method whereby one can hash a number of file parts, as opposed to the entire file, then compare the hashes of the parts. For example, 64KB from the start, "middle", and end of each file. Is this a legitimate method? How can it be done?