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 CodeQL tests CI test status on Linux CI test status on Debian CI test status on Debian

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

ssdeep_wheel-3.4.1.post1.tar.gz (111.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl (63.4 kB view details)

Uploaded CPython 3.6+Windows x86-64

ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (45.1 kB view details)

Uploaded CPython 3.6+manylinux: glibc 2.17+ x86-64

ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (43.3 kB view details)

Uploaded CPython 3.6+manylinux: glibc 2.12+ i686manylinux: glibc 2.17+ i686

File details

Details for the file ssdeep_wheel-3.4.1.post1.tar.gz.

File metadata

  • Download URL: ssdeep_wheel-3.4.1.post1.tar.gz
  • Upload date:
  • Size: 111.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ssdeep_wheel-3.4.1.post1.tar.gz
Algorithm Hash digest
SHA256 c2c713e503587b1c965248aeb2c9defe69b96e2fd80009e852635c2abe7b53b1
MD5 9f6264b2916c2dfc71910552e3bd7dfb
BLAKE2b-256 3be38b9580dde131739c4d83af142be222474ce09dd4c1a5e46f334c0ac179fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssdeep_wheel-3.4.1.post1.tar.gz:

Publisher: release-wheels.yml on hzqmwne/python-ssdeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c971245ead92d471d7a7102f1d1eaec7cf74b086c1ae05fde9cb03e5ac78e2bc
MD5 237710a0609dc4f8bb4ce7a99269a3c9
BLAKE2b-256 eedba7ee31cb7a4af5e208bc7f64f6d197ea05be48d7652d0c6ea00dba0d65b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssdeep_wheel-3.4.1.post1-cp36-abi3-win_amd64.whl:

Publisher: release-wheels.yml on hzqmwne/python-ssdeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 11a3d5d5ca4454bacc5588285b7aebbb996d424c9d976bcfadb65ab34cd588e1
MD5 ba82131fbb3aeb90794767e8ce0e897c
BLAKE2b-256 2552ecde061c1de4c5725e04f0cfd023fd306f86c4684c594f88f21b47ad83a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-wheels.yml on hzqmwne/python-ssdeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6a7c6f523d9a1c37d29deb37ece09838ec4d88d5270cb4e887d17d5bac82b066
MD5 406282c89d1483554aaa34c0525aff5c
BLAKE2b-256 8428da924492010031663538e760a7ee783d40d1fd5faf10ed2cc40126f688a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssdeep_wheel-3.4.1.post1-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: release-wheels.yml on hzqmwne/python-ssdeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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