TLSH (C++ version)
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tlsh-0.2.0.tar.gz
(1.4 kB
view details)
Built Distribution
tlsh-0.2.0-py3-none-any.whl
(1.2 kB
view details)
File details
Details for the file tlsh-0.2.0.tar.gz
.
File metadata
- Download URL: tlsh-0.2.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d722b4f65e70170ad8f88410ec46e273e1b1510d6dbe2a73a99d61c19397e98b |
|
MD5 | 4876f5f061690c6d3f0d166b85b099ef |
|
BLAKE2b-256 | b8a86fe9b6c239be921bbdc17e28e60a32300c28e883bb2c5e6ca162e5afbcf6 |
File details
Details for the file tlsh-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: tlsh-0.2.0-py3-none-any.whl
- Upload date:
- Size: 1.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9bd4bd34dbff7bfd0b92cbf367e5edcd1557de41342096602ed22e158788639 |
|
MD5 | b7354268a906cbe65efeca04c2761f08 |
|
BLAKE2b-256 | 435f892619c648b04cfb55924ad0772baf2885d370d39c1cd6e623226c2270ad |