# Compare CTPH hashes

Compares two Context Triggered Piecewise Hashing (CTPH) fuzzy hashes to determine the similarity between them on a scale of 0 to 100. Compare CTPH hashes lives in the **Hashing** category of the `fx` menu.

## Parameters

| Parameter | Type   | Required | Default     | Description                                            |
| --------- | ------ | -------- | ----------- | ------------------------------------------------------ |
| Input     | string | yes      | —           | Value to transform. Previous step output or a literal. |
| Delimiter | string | no       | `Line feed` | Choose one of: `Line feed`, `CRLF`, `Space`, `Comma`.  |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                       |
| -------- | ------------------------------------------------- |
| `number` | Result of the Compare CTPH hashes transformation. |

## Limitations

- Wrong key, algorithm options, or malformed input typically raises an evaluation error — fix Input or options before re-running.

## Example

<details>
<summary>Run Compare CTPH hashes</summary>

Compares two Context Triggered Piecewise Hashing (CTPH) fuzzy hashes to determine the similarity between them on a scale of 0 to 100. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Delimiter** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
