Skip to main content

ghost_encode_with_shadows

Function ghost_encode_with_shadows 

Source
pub fn ghost_encode_with_shadows(
    image_bytes: &[u8],
    message: &str,
    files: &[FileEntry],
    passphrase: &str,
    shadows: &[ShadowLayer],
    si: Option<SideInfo>,
) -> Result<Vec<u8>, StegoError>
Expand description

Encode with Ghost mode plus shadow messages for plausible deniability.

Shadow layers are embedded first using repetition coding. The primary message is then embedded via STC, treating shadow modifications as part of the cover. Each passphrase must be unique.