Hashdeep

De WikiMar
Salta a la navegació Salta a la cerca


Create hash file

cd folder1
hashdeep -e -l -r . > hashdeep_$(date +%y%m%d).txt
  • -r Recursive mode
  • -e Estimate time (opcional)
  • -l relative file paths

To get a deterministic order, use -j0 which disables multithreading (see the man page)

Verify hash on the same or another folder

cd folder2
hashdeep -r -X -v -k hashdeep.txt .
  • -r Recursive mode
  • -X Display each failed hash that does not match the list of known hashes
  • -v Verbose mode
  • -k Load list of known hashes
  • hashdeep.txt File containing hashes
  • dir Name of the directory in question


MAN: http://md5deep.sourceforge.net/hashdeep.html More info: https://linhost.info/2010/05/using-hashdeep-to-ensure-data-integrity/