md5deep and hashdeep

Intro

md5deep is a set of programs to recursively compute and compare MD5 (md5deep), SHA-1 (sha1deep), SHA-256 (sha256deep), Tiger (tigerdeep), or Whirlpool (whirlpooldeep) message digests on an arbitrary number of files.

md5deep is similar to the md5sum program found in the GNU Coreutils package, but has the following additional features:

  • Recursive operation, Comparison mode, Time estimation, Piecewise hashing, File type mode.

hashdeep, which is installed with md5deep, is a program for recursively computing, matching, and auditing hashsets with multiple algorithms simultaneously.

Installation

  1. Clone the repository:

     git clone https://github.com/jessek/hashdeep.git
    
  2. Make the newly extracted folder your working directory

     cd hashdeep/
    
  3. Configure the installation

     sh bootstrap.sh
    
  4. Configure the installation

     ./configure --prefix=$HOME
    
  5. Begin compilation of the application using the settings used in the previous step

     make
    
  6. Install the application

     make install
    
  7. Steps 5 and 6 can take some time, so just wait for it to complete.

Usage

  1. Add the bin directory to your PATH (if you've done this previously, you do not need to do it again)

     echo "PATH=\$HOME/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc
    
  2. Usage examples

     md5deep filename
    
     sha1deep filename
    
     sha256deep filename
    
     tigerdeep filename
    
     whirlpooldeep filename
    

    Recursively md5 hash a folder and store the results in a file

     md5deep -r foldername > checksums.txt
    
  3. For more usage examples and documentation check out: