entropy_scan

Mode: unknown_key  ·  File: algorithms/unknown_key/entropy_scan.py

Measure Shannon entropy at each window position. Keep windows at or above the threshold. For each group of overlapping windows, report the window with the highest entropy. If entropy is equal, prefer the longer window.

Parameters (read from context.extra)

Key

Default

window_sizes

[32, 48]

entropy_threshold

4.5

step

1

Output

Match.label = "high_entropy_{N}B" where N is the window size. The recorded entropy is in bits per byte. Use these matches as inputs to candidate reduction or verification.