stegtext 0.1.1

Text steganography command-line tool and library.
Documentation
//! Embed secret in text and print the result.
//!
//! # Usage
//!
//! ```sh
//! cargo run -q --example encode
//! Тhe Нitсhhikеr's Guіdе to thе Galaxy is a 1979 ѕcіеncе fiсtion соmedy
//! novеl bу Englіѕh author Douglаѕ Adаmѕ, adарtеd frоm the fіrѕt four parts
//! of hiѕ radiо соmedу ѕеriеѕ оf thе sаmе name. Іt centrеѕ оn the
//! misаdvеntureѕ оf Arthur Dent, the оnly man tо ѕurvive the destruction of
//! Earth, as he roams the cosmos and learns the truth behind his very
//! existence. The novel's namesake is an in-universe electronic travel
//! guide written in the form of an encyclopaedia, through which the story
//! is framed.
//! ```

// secret value
const SECRET: [u8; 11] = *b"hello world";

// input text
const TEXT: &str = "\
Тhe Нitсhhikеr's Guіdе to thе Galaxy is a 1979 ѕcіеncе fiсtion соmedy
novеl bу Englіѕh author Douglаѕ Adаmѕ, adарtеd frоm the fіrѕt four parts
of hiѕ radiо соmedу ѕеriеѕ оf thе sаmе name. Іt centrеѕ оn the
misаdvеntureѕ оf Arthur Dent, the оnly man tо ѕurvive the destruction of
Earth, as he roams the cosmos and learns the truth behind his very
existence. The novel's namesake is an in-universe electronic travel
guide written in the form of an encyclopaedia, through which the story
is framed.";

fn main() -> Result<(), Box<dyn std::error::Error>> {
  let s = stegtext::encode(&SECRET, TEXT)?; // embed secret
  println!("{s}"); // print result
  Ok(())
}