Skip to content
TLSH lib in Golang
Go Makefile
Branch: master
Clone or download
glaslos Merge pull request #23 from melehin/patch-1
Parsing the hash of the string type (by python333) and test
Latest commit ef19545 Aug 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Increase coverage #13 Jul 21, 2017
tests
.gitignore
.travis.yml test version fix Jul 25, 2019
LICENSE Changed license to Apache 2.0 Sep 18, 2017
Makefile version bump Aug 15, 2017
NOTICE.txt Changed license to Apache 2.0 Sep 18, 2017
README.md Not applicable Jul 19, 2017
data.go
distance.go Fix typos Jul 19, 2017
go.mod
pearson.go Improve performance of pearsonHash() function Jul 4, 2017
tlsh.go Parsing the hash of the string type Mar 3, 2018
tlsh_test.go Added test for ParseStringToTlsh function Jul 25, 2019

README.md

Build Status Coverage Status Go Report Card GoDoc

TLSH

Trend Micro Locality Sensitive Hash lib in Golang

Based on https://github.com/trendmicro/tlsh

See paper here: https://github.com/trendmicro/tlsh/blob/master/TLSH_CTC_final.pdf

TLSH is a fuzzy matching library. Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash value which can be used for similarity comparisons. Similar objects will have similar hash values which allows for the detection of similar objects by comparing their hash values. Note that the byte stream should have a sufficient amount of complexity. For example, a byte stream of identical bytes will not generate a hash value.

The computed hash is 35 bytes long (output as 70 hexidecimal charactes). The first 3 bytes are used to capture the information about the file as a whole (length, ...), while the last 32 bytes are used to capture information about incremental parts of the file.

You can’t perform that action at this time.