pub fn hash_bytes(data: &[u8]) -> String
Compute the SHA-256 hash of an in-memory byte slice as a hex string.