CTPH

Calculate a fuzzy hash for comparing files that may share similar sections.

Input: TextResult: Text

Text input

Run to see the result

Examples

The Bitcoin headline

Input

The Times 03/Jan/2009 Chancellor on brink of second bailout for banks

Expected answer

A:cqMbJKehIICECARr9eRC:hXefOEH9RC
A release record

Input

release=2.1.0
artifact=demo.tar.gz

Expected answer

A:5XpQuieFSZKs:5+QuSFNs
A webhook payload

Input

{"event":"deploy","ready":true}

Expected answer

A:uBcLd0d:uBV
A weather log

Input

station=demo
celsius=-12.5

Expected answer

A:E8lIXNi:V3Ni
A Unicode label

Input

café

Expected answer

A:ZnN:ZN

CTPH was originally based on the work of Dr. Andrew Tridgell and a spam email detector called SpamSum. This method was adapted by Jesse Kornblum and published at the DFRWS conference in 2006 in a paper 'Identifying Almost Identical Files Using Context Triggered Piecewise Hashing'.

Format reference: CTPH background and specification

Related tools

Browse hashing tools