On Thu, Sep 22, 2016 at 07:57:48PM +0200, Roberto Ragusa wrote:
> > Don't use MD5. You will get unintentional file collisions. (SHA-256 is
> > good. It depends on just how much you are comparing.)
> MD5 unintentional collisions?
> It is 128 bit, so you will have a collision after about 2^64 files,
> according to the birthday theorem.

It's pretty unlikely in the real world, but...

echo $ONE | xxd -r -p | md5sum
echo $TWO | xxd -r -p | md5sum
echo $ONE | xxd -r -p | sha256sum
echo $TWO | xxd -r -p | sha256sum

Matthew Miller
Fedora Project Leader
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to