ssdeep is a utility for creating and comparing fuzzy hashes or » context-triggered piecewise hashing.
Fuzzy hashing can match signatures which have "...sequences of identical bytes in the same order, although bytes in between these sequences may be different in both content and length". (» ssdeep project page)
This extension provides functions for creating and comparing fuzzy hashes.
This extension requires the » ssdeep library.
This » PECL extension is not bundled with PHP.
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/ssdeep.
This extension has no configuration directives defined in php.ini.
This extension has no resource types defined.
This extension has no constants defined.
Calculates the match score between two fuzzy hash signatures
Calculates the match score between signature1 and signature2 using » context-triggered piecewise hashing, and returns the match score.
The first fuzzy hash signature string.
The second fuzzy hash signature string.
Returns an integer from 0 to 100 on success, FALSE otherwise.
Create a fuzzy hash from a file
ssdeep_fuzzy_hash_filename calculates the hash of the file specified by file_name using » context-triggered piecewise hashing, and returns that hash.
The filename of the file to hash.
Returns a string on success, FALSE otherwise.
Create a fuzzy hash from a string
ssdeep_fuzzy_hash calculates the hash of to_hash using » context-triggered piecewise hashing, and returns that hash.
The input string.
Returns a string on success, FALSE otherwise.