Crate lavinhash

Crate lavinhash 

Source
Expand description

LavinHash - High-Performance Fuzzy Hashing Library

Implements the Dual-Layer Adaptive Hashing (DLAH) algorithm for detecting file similarity with extreme efficiency.

Modules§

algo
Core algorithms for fuzzy hashing
model
Data models for LavinHash
utils
Utility functions for LavinHash

Structs§

HFResult
Result structure for FFI
HashConfig
Configuration for fuzzy hashing

Functions§

compare_hashes
Compare two fuzzy hashes and return similarity score (0-100)
generate_hash
Generate a fuzzy hash from input data
hf_compare
Compare two fuzzy hashes
hf_config_free
Free configuration
hf_config_new
Create a new configuration with defaults
hf_config_set_alpha
Set the alpha coefficient
hf_config_set_min_modulus
Set minimum modulus for trigger detection
hf_config_set_parallel
Set parallel processing
hf_hash
Generate fuzzy hash from data
hf_result_free
Free result buffer