Examples
The Bitcoin headline
Input
The Times 03/Jan/2009 Chancellor on brink of second bailout for banksExpected answer
A:cqMbJKehIICECARr9eRC:hXefOEH9RCA:cqMbJKehIICECARr9eRC:hXefOEH9RC
A release record
Input
release=2.1.0
artifact=demo.tar.gz
Expected answer
A:5XpQuieFSZKs:5+QuSFNsA:5XpQuieFSZKs:5+QuSFNs
A webhook payload
Input
{"event":"deploy","ready":true}Expected answer
A:uBcLd0d:uBVA:uBcLd0d:uBV
A weather log
Input
station=demo
celsius=-12.5
Expected answer
A:E8lIXNi:V3NiA:E8lIXNi:V3Ni
A Unicode label
Input
caféExpected answer
A:ZnN:ZNA: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