FP-Devicer - v1.6.1
    Preparing search index...

    Function compareHashes

    • Compute the TLSH distance between two hash strings.

      A lower value indicates higher similarity. A distance of 0 means the hashes are identical. len_diff = true is passed to the underlying comparison so that differences in input length also contribute.

      Parameters

      • hash1: string

        First TLSH hash string (from getHash).

      • hash2: string

        Second TLSH hash string.

      Returns number

      An integer distance value where 0 = identical and higher values indicate greater dissimilarity.