[Gambas-user] Binary compare of files?

Stefano Palmeri rospolosco at ...152...
Fri Oct 17 11:28:57 CEST 2008


Il venerdì 17 ottobre 2008 10:28:28 Ron_1st ha scritto:
> On Friday 17 October 2008, Stefano Palmeri wrote:
> > If you only want to know if two files are identical,
> > you could use md5sum.
> >
> > Ciao,
> >
> > Stefano
>
> A little misunderstanding of MD5.
> You  know for _*_sure_*_ if the SUM differs they are not equal.
>
> You may _*_assume_*_ they like the same if the sum is equal.
>
> As first test to know if you need investigation for 100% the
> same files it is helpfull.
> The real test could be done with i.e. a shell to diff or comp command.
>
>
>
>
> Best regards
> Ron_1st
>

Thanks Ron! I didn't know about this MD5 issue ("collision").

http://www.gnu.org/software/coreutils/manual/html_node/md5sum-invocation.html

I've always believed that md5sum was 100% safe. 
There's always something to learn. 

Ciao, 

Stefano 







>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list