Network Security

22 Best Free and Open Source CLI Data Hashing Tools

Hashing is the process of passing data through a formula that produces a condensed fixed-value representation, called a hash value. That hash is typically a string of characters and the hashes generated by a formula are always the same length, regardless of how much data fed into it. For example, the MD5 formula produces 128-bit checksums. It converts data into blocks of specific sizes and manipulates that data a number of times.

For data security applications this requires that the hash function is collision-resistant, which means that it is very hard to find data that will generate the same hash value. Hashing is an important method used for creating a digital signature and for encrypting data.

When you download a file from the internet, it is a good safety practice to check whether you received the original version. Comparing checksums you received from the file creator with the ones you obtain by checking the file yourself is a reliable way to confirm your download’s integrity.

This article represents the best CLI tools for data hashing. We only feature free and open source software. Here’s our verdict.

Ratings chart

Let’s explore the data hashing tools. For each program we have compiled its own portal page, a full description with an in-depth analysis of its features, together with links to relevant resources.

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

This article has been updated to reflect the changes outlined in our recent announcement.

Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
2 Comments
Oldest
Newest Most Voted
Gregory Langlais
Gregory Langlais
10 hours ago

Thanks for featuring paq (I’m the author)! Version 2 was just released, and in my own benchmarks it did well against the other directory hashers I compared it with. One thought: the ranking mixes cryptographic hashers, non-cryptographic ones like xxHash, and directory hashers on one scale, so grouping them by category might make the list easier to compare.