Skip to main content

A C++ extension for TLSH

Usage:

import tlsh
h1 = tlsh.hash(data)
h2 = tlsh.hash(similar_data)
score = tlsh.diff(h1, h2)

h3 = tlsh.Tlsh()
with open('file', 'rb') as f:
    for buf in iter(lambda: f.read(512), b''):
        h3.update(buf)
    h3.final()
assert h3.diff(h) == 0
score = h3.diff(h1)

Release files for tlsh 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tlsh 0.2.0
File Size Uploaded
tlsh-0.2.0.tar.gz 1.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tlsh 0.2.0
File Interpreter ABI Platform
tlsh-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.6 kB

Release files / tlsh-0.2.0.tar.gz

Download URL tlsh-0.2.0.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d722b4f65e70170ad8f88410ec46e273e1b1510d6dbe2a73a99d61c19397e98b
BLAKE2b-256 checksum
How to use checksums
b8a86fe9b6c239be921bbdc17e28e60a32300c28e883bb2c5e6ca162e5afbcf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / tlsh-0.2.0-py3-none-any.whl

Download URL tlsh-0.2.0-py3-none-any.whl
Size 1.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9bd4bd34dbff7bfd0b92cbf367e5edcd1557de41342096602ed22e158788639
BLAKE2b-256 checksum
How to use checksums
435f892619c648b04cfb55924ad0772baf2885d370d39c1cd6e623226c2270ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page