Skip to content
Discussion options

You must be logged in to vote

Because storing the value would make the tool a copy of the thing it reports.

A scanner that keeps raw hits becomes another artifact containing the secret - the report, the cache or the regression fixture then leaks exactly what you were auditing. The fingerprint (truncated SHA-256 of the match) gives the same property comparisons need - one stable logical identity per credential - with nothing to leak. The same value re-appears as the same fingerprint; different values do not collide.

It also survives cosmetic churn: the raw text can differ in surrounding quoting between commits while the fingerprint still ties both occurrences to one credential. The report stays actionable with rule, le…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by camillejackson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants