Documentation
¶
Overview ¶
Package decoder expands a chunk of bytes into the original plus any decoded variants worth re-scanning. Three encodings are inspected:
- base64 (std + url-safe), runs of >=32 chars
- percent-encoded sequences (%xx), when at least two are present
- hex, runs of >=40 chars (covers SHA1/256 and key-shaped blobs)
Each variant is returned only when its decoded byte stream is mostly printable ASCII — a heuristic that filters out random-looking decoded noise such as binary blobs accidentally inside a base64 paragraph.
Variants() never returns the original twice, even if no decoder fired. Callers feed every returned slice through their detector pipeline so a secret hidden inside `Authorization: Bearer <base64-of-token>` is found the same way as one written in plaintext.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.