Skip to main content

ghost_encode_with_files

Function ghost_encode_with_files 

Source
pub fn ghost_encode_with_files(
    image_bytes: &[u8],
    message: &str,
    files: &[FileEntry],
    passphrase: &str,
) -> Result<Vec<u8>, StegoError>
Expand description

Encode a text message with file attachments into a cover JPEG using Ghost mode.

Files are embedded alongside the text message in the payload. The entire payload (text + files) is compressed with Brotli before encryption.