Crowbar::Selectors::Entropy
Inherits Crowbar::Selector < Reference < Object
Selects regions based on Shannon information entropy:
- :high entropy (>= threshold, default 6.5 bits/byte): identifies compressed, encrypted, or random payload chunks.
- :low entropy (<= threshold, default 2.5 bits/byte): identifies repetitive padding, null blocks, or tabular space runs.
Constructors
Class methods
Instance methods
mode
SourceReturns an array of target ranges {start_index, end_index_exclusive}
threshold
Sourcewindow_size
Source