Skip to main content

Python modules for impfuzzy

Project description

pyimpfuzzy is python module which calculate and compare the impfuzzy(import fuzzy hashing)

More details are described in the following documents:

Requirements

pyimpfuzzy requires the following modules:

Installation

$ pip install pyimpfuzzy

Usage

  • get_impfuzzy - return the impfuzzy hash for a given file

  • get_impfuzzy_data - return the impfuzzy hash for a buffer

  • hash_compare - return the match between 2 hashes

Example Usage

import pyimpfuzzy
import sys

hash1 = pyimpfuzzy.get_impfuzzy(sys.argv[1])
hash2 = pyimpfuzzy.get_impfuzzy(sys.argv[2])
print("ImpFuzzy1: %s" % hash1)
print("ImpFuzzy2: %s" % hash2)
print("Compare: %i" % pyimpfuzzy.hash_compare(hash1, hash2))

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

pyimpfuzzy-0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

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