Skip to main content

Post-validators

EntropyPostValidator

Ensures the Shannon entropy of matches is greater than a given threshold. It should be used for API keys and such that should have high entropy because they are random.

type (required)

Type: string

Must be set to EntropyPostValidator.

entropy (required)

Type: number

Minimum: 1

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).