Hashdeep: diferència entre les revisions

De WikiMar
Salta a la navegació Salta a la cerca
(Es crea la pàgina amb « ==Create hash file== cd folder1 hashdeep -e -l -r . > hashdeep.txt * -r Recursive mode * -e Estimate time (opcional) * -l relative file paths To get a determini...».)
 
Línia 4: Línia 4:


  cd folder1
  cd folder1
  hashdeep -e -l -r . > hashdeep.txt
  hashdeep -e -l -r . > hashdeep_$(date +%y%m%d).txt


* -r Recursive mode
* -r Recursive mode
Línia 11: Línia 11:


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


==Verify hash on the same or another folder==
==Verify hash on the same or another folder==

Revisió del 14:00, 16 gen 2016


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/