上传者: 42117340
|
上传时间: 2022-03-15 09:14:42
|
文件大小: 29KB
|
文件类型: -
模糊哈希
纯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