Skip to main content

Module checksum

Module checksum 

Source
Expand description

Multi-algorithm file checksum computation and sidecar-file parsing.

Supports SHA-256, SHA-512, SHA-1, MD5, and BLAKE3. The parse_sidecar function understands both the GNU <hash> <file> format and the BSD ALG (file) = hash format.

Enums§

ChecksumAlgorithm
Checksum algorithm used to verify a downloaded file.

Functions§

compute_checksum
Compute the checksum of a file using the specified algorithm.
parse_sidecar
Scan a checksum sidecar file and return the (algorithm, hash) pair matching filename.