pub fn hash(data: &[u8]) -> String
Expand description
Generates an MD5 hash of the provided data as a hexadecimal string.
This function is used internally for patch validation to ensure data integrity.
ยงExample
use files_diff::hash;
let data = b"Hello, world!";
let hash_str = hash(data);
assert_eq!(hash_str.len(), 32); // MD5 hash is always 32 hex chars