Hashrat
Hashrat is a hashing utility supporting multiple hash algorithms including MD5, SHA1, SHA256, SHA512, Whirlpool, and JH variants, with HMAC support. It offers recursive directory hashing, device hashing, traditional output formats, and remote operations.
Description
Hashrat is a versatile hash-generation tool designed for security professionals, particularly useful in forensics investigations and network security assessments. It supports a wide range of hash functions (md5, sha1, sha256, sha512, whirlpool, jh-244, jh256, jh-384, jh-512) and their HMAC versions, providing flexibility for various verification and integrity checking needs.
The tool can output hashes in multiple formats including traditional (md5sum/shasum style), octal, decimal, hexadecimal, uppercase hexadecimal, or base64. Key features include directory recursion, hashing entire devices or directories, and operations on remote machines. It also includes a CGI mode for web-based hash lookup functionality.
Hashrat detects when run via symlinks like md5sum, shasum, etc., automatically applying appropriate default flags for compatibility with standard Unix hash tools.
How It Works
Hashrat computes cryptographic hashes using specified algorithms on files, directories, devices, or remote targets. It supports algorithm chaining (e.g., sha256,whirlpool), recursive traversal for directories, HMAC computation, and multiple output encodings. When invoked via symlinks (md5sum, sha1sum, etc.), it auto-configures traditional output with the corresponding hash type. The CGI mode enables HTTP-based hash lookup services.
Installation
sudo apt install hashratFlags
Examples
hashrat [options] [path to hash]...hashrat -c [options] [input file of hashes]...hashrat -type sha256,whirlmd5sum file.txtshasum -a 256 file.txtsha256sum directory/hashrat -type sha512 /dev/sda