ssdeep_fuzzy_compare

Calculates the match score between two fuzzy hash signatures

说明

int ssdeep_fuzzy_compare ( string $signature1 , 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 ssdeep_fuzzy_hash_filename ( 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 ssdeep_fuzzy_hash ( 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.

目录