Skip to main contentModule hash
Source - CheckOptions
- Options for check mode.
- HashAlgorithm
- Supported hash algorithms.
- check_file
- Verify checksums from a check file.
Each line should be “hash filename” or “hash *filename”.
Returns (ok_count, fail_count, error_count).
- hash_file
- Hash a file by path. Returns the hex digest.
- hash_reader
- Compute hash of data from a reader, returning hex string.
- hash_stdin
- Hash stdin. Returns the hex digest.
- print_hash
- Print hash result in GNU format: “hash filename\n”
- print_hash_tag
- Print hash result in BSD tag format: “ALGO (filename) = hash\n”