Function fuzzyhash::hash_buffer [] [src]

pub fn hash_buffer(buf: Vec<u8>) -> String

Returns the fuzzy hash of arbitrary data

Arguments

  • buf - a Vec containing the data to hash

Example

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