Python/C bindings for the ssdeep library at http://ssdeep.sourceforge.net:
- hash_buf / hash_bytes - returns the ssdeep hash for a given buffer
- hash_file - returns the ssdeep hash for filepath
- compare - returns the % match between 2 hashes
import pydeep
pydeep.hash_buf('somedata')
pydeep.hash_file('/path/to/file')
pydeep.compare('hash1','hash2')
Pyssdeep was segfaulting manytimes on OSX. Thats why i quickly wrote pydeep.
Instead of:
from ssdeep import ssdeep
s = ssdeep()
s.hash_file('some-file')
You can replace the first 2 lines with:
import pydeep as s
And you should be all set.
- OSX 10.10 - x86_64
- OSX 10.9 - x86_64
- OSX 10.8 - x86_64
- OSX 10.7 - x86_64, i386
- CentOS 5 - x86_64, i386
- Debian 7 - x86_64
- ssdeep-2.13
- ssdeep-2.11.1
- ssdeep-2.10
- ssdeep-2.9
- ssdeep-2.8
- Python 2.5 or later