#tlsh #locality-sensitive #similarity-hash

bin+lib simbiota-tlsh

A pure-rust implementation of Trendmicro's TLSH algorithm, featuring the same optimizations found in the reference implementation

2 stable releases

1.1.0 Sep 5, 2024
1.0.0 Jul 31, 2024
Download history 121/week @ 2024-07-28 5/week @ 2024-08-04 116/week @ 2024-09-01 22/week @ 2024-09-08 37/week @ 2024-09-15 23/week @ 2024-09-22 61/week @ 2024-09-29 10/week @ 2024-10-06 4/week @ 2024-10-13

99 downloads per month

Custom license

280KB
4K SLoC

TLSH rust reimplementation introducing colored hashes

We reimplemented the original TLSH algorithm in Rust. Our implementation currently is the modified version of the default hash calculation parameters, namely, 1 byte checksum, 128 buckets that result in a 70 character long hash in hexadecimal representation. Note, however, that our implementation supports an extra security feature that we added in order to prevent a recent attack on the TLSH scheme[^1]. As a consequence, the hash value that our implementation produces can contain an extra byte compared to the original TLSH hash value, so it is 36 bytes long (i.e., 72 characters long in hexadecimal form) instead of 35 bytes.

[^1]: Gábor Fuchs, Roland Nagy, Levente Buttyán, A Practical Attack on the TLSH Similarity Digest Scheme, In Proceedings of the 18th International Conference on Availability, Reliability and Security (ARES 2023), Benevento, Italy, August 29 - September 1, 2023. DOI: 10.1145/3600160.3600173

Dependencies

~1.2–1.7MB
~33K SLoC