paralax / pyssdeep

python bindings for kornblum's ssdeep fuzzy hasher
1 stars 3 forks source link

About

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.

Example

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)

Requirements

Installation

  1. get pyssdeep here
  2. unpack ssdeep
  3. unpack pyssdeep under ssdeep (e.g. ssdeep-2.2/pyssdeep )
  4. build ssdeep; install ssdeep; on linux you may have to rerun ldconfig to register libfuzzy
  5. build pyssdeep: make; sudo make install