pub fn hash_bytes(algorithm: Algorithm, data: &[u8]) -> String
Hash a byte slice — used by tests and by mirror equivalence checks.