Expand description
Corpus steganography: zero-modification cover selection via ANN search.
Given a payload to embed and a corpus of images, this module finds the image whose natural LSB bit pattern most closely matches the payload — minimising or eliminating modifications needed.
Functions§
- extract_
lsb_ pattern - Extract the LSB bit pattern from raw pixel bytes.
- filter_
by_ model - Filter corpus entries by model ID and resolution.
- hamming_
distance - Compute the Hamming distance between two byte slices of equal length.
- is_
close_ match - Determine if a Hamming distance counts as a “close enough” match.
- payload_
to_ bit_ pattern - Expand a payload into a bit pattern of the same format as
extract_lsb_patternoutput (one bit per sample, packed into bytes). - score_
match - Score a corpus entry’s precomputed bit pattern against a payload pattern.