Module hash

Module hash 

Source
Expand description

SHA-256 file hashing for cache invalidation

Provides content-based hashing for detecting file changes. Uses SHA-256 for cryptographic strength and collision resistance.

Functions§

hash_content
Hash content using SHA-256 and return hex string
hash_file
Hash a file’s content using SHA-256
hash_parts
Compute hash from multiple content parts (for composite hashing)
verify_hash
Verify if content matches expected hash