Function fuzzyhash::hash_array [] [src]

pub fn hash_array(buf: &[u8], length: usize) -> String

Returns the fuzzy hash of arbitrary data.

Arguments

  • buf - a &[u8] containing the data to hash

Example

use fuzzyhash::{hash_array};
let data = "this is our test data!".to_string();
println!("Fuzzy Hash: {}", hash_array(data.as_bytes(), data.len()));