md5sum, sha256sum & sha512sum – Prüfsummen berechnen und überprüfen

Du kennst sicher die Herausforderung, wenn du Dateien von externen Quellen herunterlädst oder Backups sicherstellst – dabei ist die Integrität der Daten entscheidend, um Manipulationen oder Korruptionen früh zu erkennen. Die Befehle md5sum, sha256sum und sha512sum berechnen kryptografische Prüfsummen, die wie ein digitaler Fingerabdruck deiner Dateien wirken und dir helfen, die Authentizität und Vollständigkeit zu überprüfen. Grundlagen der Prüfsummen Prüfsummen basieren auf […]

https://andreas-moor.de/md5sum-sha256sum-sha512sum-pruefsummen-berechnen-und-ueberpruefen/

xxHash: Seems to have one the contest for a non-cryptographic hash or checksum algorithm
https://xxhash.com/
#programming #checksum #md5sum #crc32 #hash #crc #+
xxHash - Extremely fast non-cryptographic hash algorithm

Pour comparer deux répertoires on peut calculer leur somme md5.
Pour calculer la md5sum d'un répertoire:
1) se placer dans le répertoire
2) find . -type f -exec md5sum {} \; | sort -k 2 | md5sum

#linuxTips #md5sum

src: https://unix.stackexchange.com/questions/35832/how-do-i-get-the-md5-sum-of-a-directorys-contents-as-one-sum

How do I get the MD5 sum of a directory's contents as one sum?

The md5sum program does not provide checksums for directories. I want to get a single MD5 checksum for the entire contents of a directory, including files in sub-directories. That is, one combined