Function ssdeep::hash_buf

source ·
pub fn hash_buf(buffer: &[u8]) -> Result<RawFuzzyHash, GeneratorError>
Available on crate feature easy-functions only.
Expand description

Generates a fuzzy hash from a given buffer.

Example (requires the alloc feature)

assert_eq!(
    ssdeep::hash_buf(b"Hello, World!\n").unwrap().to_string(),
    "3:aaX8v:aV"
);