Skip to main content

sha1_digest

Function sha1_digest 

Source
pub fn sha1_digest(bytes: &[u8]) -> [u8; 20]
Expand description

Computes the SHA-1 digest of bytes.

Useful for content-based cache keys when you want to avoid staleness caused by path-only keys.