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
-
Connect to your slot through SSH
-
Clone the repository:
git clone https://github.com/jessek/hashdeep.git
-
Enter the source directory
cd hashdeep/
-
Configure the installation
sh bootstrap.sh; ./configure --prefix=$HOME
-
Begin compiling the application. This process may take some time to complete.
make
-
Install the application
make install
Usage
-
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
-
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
-
For more usage examples and documentation check out: