signature for a file ?

Shagshag13 shagshag13 at yahoo.fr
Tue Jul 30 06:13:31 EDT 2002


"Paul Rubin" <phr-n2002b at NOSPAMnightsong.com> a écrit dans le message de news: 7xeldlh6o8.fsf at ruckus.brouhaha.com...
> You don't say what OS you're running.

<ashamed>kro$oft</ashamed>

> Anyway if two files have the
> same MD5 checksum, it's basically certain that the files are
> identical.

thanks for this, (so no need to use SHA or CRC ?)

> So your basic strategy is:
>
>    for each file in your system:
>       c = md5 checksum of the file
>       print c and the pathname leading to the file
>
> Then take the output of the above and sort it so all the identical md5's
> end up next to each other in the output.
>
> Then find all the sets of files with identical md5's and print out their
> paths so you can investigate further, get rid of one copy, etc.

yes, i would like to do something like that !





More information about the Python-list mailing list