Hashrat – file hashing and integrity tool

Hashrat is a command-line utility for calculating, storing, and comparing hash values. It supports several cryptographic digest algorithms and provides additional facilities for examining large file collections, detecting duplicates, and checking whether files match previously recorded hashes.

The software can hash individual files, directory trees, complete devices, and data received through standard input. It also supports retrieving remote content through HTTP or SSH for hashing. These capabilities make Hashrat suitable for administrative scripts and integrity checking tasks that involve data distributed across different machines.

Hashrat’s approach to storing checksums is particularly flexible. Hash values can be written to ordinary files, stored in extended filesystem attributes, or maintained through a memcached service. This allows integrity information to be associated with files or shared between systems. Its matching and duplicate-detection modes can search directory trees for files corresponding to known hashes, while optional filters restrict processing to selected names, dates, or file types.

The utility also supports several output encodings and can operate through a CGI interface. Additional facilities include HMAC calculations and time-based one-time password generation.

This is free and open source software.

Key Features

  • Supports MD5, SHA-1, SHA-2, Whirlpool, JH, and HMAC hash calculations.
  • Recursive hashing of directory trees and individual files.
  • Calculates hashes for entire directories and filesystem devices.
  • Checks files against known hash lists.
  • Finds files matching specified digests and identifies duplicates.
  • Stores checksums in extended filesystem attributes.
  • Integrates with memcached for storing and retrieving hash values.
  • Remote file hashing over HTTP and SSH.
  • Configurable filename, modification date, and file-type filters.
  • Output encodings including hexadecimal, decimal, octal, Base32, and Base64.
  • CGI interface for calculating hashes through a web page.
  • Time-based one-time password generation.
  • Can rename files to include their hash values.
  • Supports scripts triggered by hash verification failures or matching files.

Website: github.com/ColumPaget/Hashrat
Support:
Developer: Colum Paget
License: GNU General Public License v3.0

Hashrat is written in C. Learn C with our recommended free books and free tutorials.


Related Software

CLI Data Hashing Tools
xxHashNon-cryptographic hash algorithm
b3sumImplementation of the BLAKE3 hash function
RHashCalculate and verify magnet links and various message digests
md5sumCompute and check MD5 message digest; part of GNU Coreutils
cfvTest and create checksum files
JacksumWork with checksums, CRCs, and message digests
md5Generate / check MD5 message digest
digupUpdate md5sum or shasum digest files
cksumCompute and verify file checksums
HashratHash-generation utility
Directory ChecksumRecursively calculate checksums for directory contents
paqFast BLAKE3 hashing tool for files and directories
ddgstHashing and checksum utility
QCalcFileHashHash calculator
hashdirChecksum directories and files
Hash CalculatorCalculates around 50 cryptographic hashes of strings and files
danoHashdeep/md5tree for media files
sha3sumKeccak, SHA-3, SHAKE, and RawSHAKE checksum utilities
luhaSimple file checksum tool
filepackFile hashing and verification
bitratFast file checksum tool supporting multiple hash algorithms
b2sumCalculate BLAKE2 checksums
Additional tools:
hashitGenerate file hashes quickly
hashdeepGenerate and verify file hashes
cksfvCreate and check sfv listings using CRC32 checksums
cksfv.rsReimplements the classic cksfv tool

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted