Skip to main content

Python wrapper for the ssdeep library

Project description

ssdeep Python Wrapper

This is a straightforward Python wrapper for ssdeep by Jesse Kornblum, which is a library for computing context triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both content and length.

Latest Version License Python Versions Latest Docs https://travis-ci.org/DinoTools/python-ssdeep.svg?branch=master Build state

How to use it

To compute a fuzzy hash, use hash function:

>>> import ssdeep
>>> hash1 = ssdeep.hash('Also called fuzzy hashes, Ctph can match inputs that have homologies.')
>>> hash1
'3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C'
>>> hash2 = ssdeep.hash('Also called fuzzy hashes, CTPH can match inputs that have homologies.')
>>> hash2
'3:AXGBicFlIHBGcL6wCrFQEv:AXGH6xLsr2C'

The compare function returns the match between 2 hashes, an integer value from 0 (no match) to 100.

>>> ssdeep.compare(hash1, hash2)
22

More examples are available in the python-ssdeep documentation.

Install

If all requirements are met it is possible to install the wrapper by using pip or easy_install.

$ pip install ssdeep

The build will fail if the ssdeep library isn’t installed. To use the included version of the ssdeep library use the following command.

$ BUILD_LIB=1 pip install ssdeep

For more information have a look at the python-ssdeep documentation.

Tested on …

  • CentOS 7

  • Debian 8, 9

  • Ubuntu 14.04, 16.04, 18.04

Documentation

Feel free to use the prebuild python-ssdeep documentation or use the steps below to build the documentation.

$ cd docs
$ pip install -r requirements.txt
$ make html

Licensing

The code is licensed under the terms of the LGPLv3+.

This wrapper includes the unchanged source distribution of ssdeep version 2.14.1. It is licensed under the GPLv2.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thoth-ssdeep-3.4.tar.gz (112.7 kB view details)

Uploaded Source

Built Distributions

thoth_ssdeep-3.4-cp38-cp38-manylinux2014_x86_64.whl (47.2 kB view details)

Uploaded CPython 3.8

thoth_ssdeep-3.4-cp38-cp38-manylinux2010_x86_64.whl (46.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

thoth_ssdeep-3.4-cp36-cp36m-manylinux2014_x86_64.whl (46.6 kB view details)

Uploaded CPython 3.6m

thoth_ssdeep-3.4-cp36-cp36m-manylinux2010_x86_64.whl (45.4 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

File details

Details for the file thoth-ssdeep-3.4.tar.gz.

File metadata

  • Download URL: thoth-ssdeep-3.4.tar.gz
  • Upload date:
  • Size: 112.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for thoth-ssdeep-3.4.tar.gz
Algorithm Hash digest
SHA256 a71e3de2bda71b9d7ca01dd1ae540f24e4a041f6eff7de2a139c58434f401383
MD5 e529284aeb38deace5e5f1c71fa5ab6d
BLAKE2b-256 ee31c032a05bd5a86c1cfb8d64d19b21d185e837fe4b4f37cf7754fe736378bc

See more details on using hashes here.

File details

Details for the file thoth_ssdeep-3.4-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: thoth_ssdeep-3.4-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for thoth_ssdeep-3.4-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a4d4881dfa2ac286e3d6e67851cb3eefb3236eed82100b6b4edd18563db2911
MD5 54393012ede22289d9751903c3156214
BLAKE2b-256 68e1919b9f71a464a22ae9d3765b41e79b3e5e120728ab452631e0b35f779e90

See more details on using hashes here.

File details

Details for the file thoth_ssdeep-3.4-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: thoth_ssdeep-3.4-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 46.0 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for thoth_ssdeep-3.4-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fa0c7432ed64061afcde9b2e32287ba7024be856a3dc5a5d022cd27afdb19731
MD5 5796de62721d69211a23111c030c96a2
BLAKE2b-256 280d01fdabb33909d88d224909a01ac82ec2c16ae8246ed2233ee155f2d6e09b

See more details on using hashes here.

File details

Details for the file thoth_ssdeep-3.4-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: thoth_ssdeep-3.4-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for thoth_ssdeep-3.4-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c68de3473b740dd7ec6ef47410a2c2f8f83044b16c27528e175334f0a7195a61
MD5 252e48a6b2137705810679dd2fd9958b
BLAKE2b-256 8d1df3c51a56057c3502f322951ab6cacf393240ff5e8e37d57de0fffa822186

See more details on using hashes here.

File details

Details for the file thoth_ssdeep-3.4-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: thoth_ssdeep-3.4-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 45.4 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for thoth_ssdeep-3.4-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a9a5293cc5a5ebeb147e0c95eeb2d391dfdd3ff20d36e7c955025615c2be1257
MD5 0042240ca4a6af715413f5668b831c97
BLAKE2b-256 81ef7adf20de677b489de2186c6bc44d5bc92f407cd4bb746a7abd16d6b597bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page