Ref/ssdeep-Phpdoc专题
ssdeep_fuzzy_compare
Calculates the match score between two fuzzy hash signatures
说明
int <span
class="methodname">ssdeep_fuzzy_compare ( <span
class="methodparam">string
$signature1 , <span
class="type">string $signature2 )
Calculates the match score between signature1 and signature2 using
» context-triggered piecewise hashing,
and returns the match score.
参数
signature1
The first fuzzy hash signature string.
signature2
The second fuzzy hash signature string.
返回值
Returns an integer from 0 to 100 on success, false otherwise.
ssdeep_fuzzy_hash_filename
Create a fuzzy hash from a file
说明
string <span
class="methodname">ssdeep_fuzzy_hash_filename ( <span
class="methodparam">string $file_name
)
ssdeep_fuzzy_hash_filename calculates
the hash of the file specified by file_name using
» context-triggered piecewise hashing,
and returns that hash.
参数
file_name
The filename of the file to hash.
返回值
Returns a string on success, false otherwise.
ssdeep_fuzzy_hash
Create a fuzzy hash from a string
说明
string <span
class="methodname">ssdeep_fuzzy_hash ( <span
class="methodparam">string $to_hash )
ssdeep_fuzzy_hash calculates the hash of
to_hash using
» context-triggered piecewise hashing,
and returns that hash.
参数
to_hash
The input string.
返回值
Returns a string on success, false otherwise.
目录
- ssdeep_fuzzy_compare — Calculates the match score between two fuzzy hash signatures
- ssdeep_fuzzy_hash_filename — Create a fuzzy hash from a file
- ssdeep_fuzzy_hash — Create a fuzzy hash from a string