ssdeep was written by Jesse Kornblum. this is a set of python bindings for it.
the python bindings work with ssdeep 2.0-2.2.
from ssdeep import ssdeep
s = ssdeep()
# basic hash generation
for i in sys.argv[1:]:
print '%s %20s' % (i, s.hash_file(i))
h1 = s.hash_file('test.py')
h2 = s.hash_file('setup.py')
print s.compare(h1, h2)
print s.compare(h1, h1)
- python 2.x (3.x not tested) - http://www.python.org/
- ssdeep - http://ssdeep.sourceforge.net/
- pyrex - http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
- get pyssdeep here
- unpack ssdeep
- unpack pyssdeep under ssdeep (e.g. ssdeep-2.2/pyssdeep )
- build ssdeep; install ssdeep; on linux you may have to rerun ldconfig to register libfuzzy
- build pyssdeep: make; sudo make install