Skip to main content

file_hash

Function file_hash 

Source
pub fn file_hash(path: &Path) -> Result<String, Box<dyn Error>>
Expand description

Compute a fast, position-weighted hash of a file’s contents.

Not cryptographically secure — sufficient for cache invalidation (detecting that an input changed), not for integrity verification.