Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hash Algorithms

rsdedup supports three hash algorithms. Choose with --hash <ALGO>.

SHA-256 (default)

A widely-used cryptographic hash function producing 256-bit digests. Very low collision probability.

rsdedup dedup report --hash sha256

xxHash (xxh3-128)

A non-cryptographic hash optimized for speed. Produces 128-bit digests. Significantly faster than SHA-256 for large files.

rsdedup dedup report --hash xxhash

Use xxHash when you’re scanning large datasets and trust that the files are not adversarially crafted.

BLAKE3

A modern cryptographic hash that’s both fast and secure. Often faster than SHA-256 while providing equivalent security.

rsdedup dedup report --hash blake3

Comparison

AlgorithmTypeOutputSpeedSecurity
SHA-256Cryptographic256-bitModerateHigh
xxHashNon-cryptographic128-bitVery fastNone
BLAKE3Cryptographic256-bitFastHigh

For most users, the default SHA-256 is fine. If performance matters more than cryptographic guarantees, use xxHash. If you want both speed and security, use BLAKE3.