-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is rdfind safe for sha1 (or other) checksum collisions? #126
Comments
That is my interpretation as well. Admittedly, SHA-256 is fairly collision resistant. |
Then I'd suggest to point out it in documentation somewhere (like it did in ZFS documentation). |
May I suggest BLAKE3 as a (very fast and collision-resistant) alternative to SHA256? Anyway, SHA1 is known-broken (See https://shattered.io/), and real-world collision examples exist (for example two different PDFs which hash the same: https://shattered.io/) There's also https://github.com/corkami/collisions to consider, so I'ld say MD5 is definitely out. |
BTW: I have collected some of these (PDF files) collision file examples as part of a large, slowly growing, test corpus for another application and I'ld love it when default 🤔 Ultimately, "safe" would then mean we'ld have to settle for an additional final verification round where the file content is compared byte-for-byte as you can never be absolutely sure with a (cryptographically secure) hash. Ah well, performance be damned.
|
I've attempted to read the code and haven't found a part that reads and compares 2 full files. So the determination of duplicates is seemed to be done only based on checksums (similarly as ZFS dedup=on), but not on contents (ZFS dedup=verify), is that correct?
The text was updated successfully, but these errors were encountered: