binary file compare...
Adam Olsen
rhamph at gmail.com
Fri Apr 17 14:32:34 EDT 2009
On Apr 17, 9:59 am, SpreadTooThin <bjobrie... at gmail.com> wrote:
> You know this is just insane. I'd be satisfied with a CRC16 or
> something in the situation i'm in.
> I have two large files, one local and one remote. Transferring every
> byte across the internet to be sure that the two files are identical
> is just not feasible. If two servers one on one side and the other on
> the other side both calculate the CRCs and transmit the CRCs for
> comparison I'm happy.
Definitely use a hash, ignore Nigel. SHA-256 or SHA-512. Or, if you
might need to update one of the files, look at rsync. Rsync still
uses MD4 and MD5 (optionally!), but they're fine in a trusted
environment.
More information about the Python-list
mailing list