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 | |
|---|---|
| xxHash | Non-cryptographic hash algorithm |
| b3sum | Implementation of the BLAKE3 hash function |
| RHash | Calculate and verify magnet links and various message digests |
| md5sum | Compute and check MD5 message digest; part of GNU Coreutils |
| cfv | Test and create checksum files |
| Jacksum | Work with checksums, CRCs, and message digests |
| md5 | Generate / check MD5 message digest |
| digup | Update md5sum or shasum digest files |
| cksum | Compute and verify file checksums |
| Hashrat | Hash-generation utility |
| Directory Checksum | Recursively calculate checksums for directory contents |
| paq | Fast BLAKE3 hashing tool for files and directories |
| ddgst | Hashing and checksum utility |
| QCalcFileHash | Hash calculator |
| hashdir | Checksum directories and files |
| Hash Calculator | Calculates around 50 cryptographic hashes of strings and files |
| dano | Hashdeep/md5tree for media files |
| sha3sum | Keccak, SHA-3, SHAKE, and RawSHAKE checksum utilities |
| luha | Simple file checksum tool |
| filepack | File hashing and verification |
| bitrat | Fast file checksum tool supporting multiple hash algorithms |
| b2sum | Calculate BLAKE2 checksums |
| Additional tools: | |
| hashit | Generate file hashes quickly |
| hashdeep | Generate and verify file hashes |
| cksfv | Create and check sfv listings using CRC32 checksums |
| cksfv.rs | Reimplements the classic cksfv tool |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.