pub fn hash_file(algo: HashAlgorithm, path: &Path) -> Result<String>
Hash a file by path. Returns the hex digest.