Skip to main content

Post-validators

EntropyPostValidator​

Calculates the Shannon entropy of the match string If the entropy is greater than the threshold, the match is valid

Optionally also requires a minimum effective number of distinct subwords per character, which rejects well-formed placeholders, identifiers and hand-typed values that pass the character-level entropy check. It is only computed when a threshold is configured, and only for matches that pass the entropy check. Hex-heavy matches (hex digests, UUIDs) skip it, since hex values are already arbitrated by the entropy check.

type (required)​

Type: string

Must be set to EntropyPostValidator.

entropy (required)​

Type: number

Minimum: 1.0

The minimum value of entropy that the match must have to be accepted. A value of 3 would be good for short matches (less than 20 characters).