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§
- Checksum
Algorithm - 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 matchingfilename.