Whatbox Logo

Wiki > 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. Connect to your slot through SSH

  2. Clone the repository:

     git clone https://github.com/jessek/hashdeep.git
    
  3. Enter the source directory

     cd hashdeep/
    
  4. Configure the installation

     sh bootstrap.sh; ./configure --prefix=$HOME
    
  5. Begin compiling the application. This process may take some time to complete.

     make
    
  6. Install the application

     make install
    

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: