stegtext 0.2.0

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сhhiker's Guіde tо the Galaxy is a 1979 ѕcіеncе fiсtion соmedy
//! noνеl by Еnglіsh author Dоuglаs Аdаms, аdарtеd from thе fіrst four parts
//! of hiѕ radiо соmedу ѕеriеѕ оf thе sаmе name.
//! ```

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

// 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.";

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