Home > php_ssdeep

php_ssdeep

Php_ssdeep is a project mainly written in ..., it's free.

A PHP extension to expose ssdeep functionality for fuzzy hashing and comparing

php_ssdeep is now on PECL

This project is now in the PHP PECL repository.

  • php_ssdeep PHP/PECL Extension Homepage
  • ssdeep PECL page
  • ssdeep PHP documentation
  • ssdeep PECL source
  • ohloh Project Page (for project stats)

To install

After you have installed a copy of ssdeep (see below for more information) you simply run the following command:

sudo pecl install ssdeep

Installing the ssdeep libraries

I would recommend building ssdeep from source using the instructions from it's project site. Once done you need to copy .libs/* to /usr/lib so that the php_ssdeep extension can see the ssdeep libraries.

sudo cp .libs/* /usr/lib

You can use the packages supplied with Ubuntu or Debian, but they are not yet updated to the latest version of ssdeep.

If you are having trouble building or running the php_ssdeep extension it expects to see the following directory structure:

/usr/bin/ssdeep

/usr/include/fuzzy.h

/usr/lib/libfuzzy.a

/usr/lib/libfuzzy.la

/usr/lib/libfuzzy.so

/usr/lib/libfuzzy.so.2

/usr/lib/libfuzzy.so.2.0.0

Source: Ubuntu Karmic file list