1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! # ASBS
//!
//! The **ASBS** (**A**rbitrarily **S**ignificant **B**it**s**) library provides the traits and
//! implementations useful for steganographic concealment and extraction of messages.
//!
//! ## Binary implementation
//!
//! The [`binary`] module can be used to encode messages in binary data with *bit patterns*,
//! which act as keys and should be shared with the receiver of the message. See its
//! [documentation][`binary`] for details.
use io;
/// A trait for objects able to conceal steganographic messages, or carriers.
///
/// Carriers are defined by a single required method, [`conceal`][Conceal::conceal],
/// which hides the payload in the given cover data.
///
/// # Examples
///
/// [`binary::Carrier`] can be used to conceal secret messages in binary data.
/// A trait for objects able to reveal steganographic messages, or packages.
///
/// Packages are defined by a single required method, [`reveal`][Reveal::reveal],
/// which writes the hidden message to the output.
///
/// # Examples
///
/// [`binary::Package`] can be used to reveal secret messages hidden in binary data.