模糊哈希
纯Rust模糊哈希实现。
用法
散列文件
use fuzzyhash :: FuzzyHash;
let fuzzy = FuzzyHash :: file ( "/path/to/file" ). unwrap ();
// `FuzzyHash` implements `Display` so this works:
println! ( "fuzzy hash of file: {}" , fuzzy);
哈希数据
use fuzzyhash :: FuzzyHash;
// Anything that implements `AsRef<[u8]>` can be immediately hashed
let data = vec! [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ];
let fuzzy = FuzzyHash
2022-03-15 09:14:42
29KB
Rust
1