Crate stegano_core[−][src]
Expand description
Stegano Core API
There are 3 main structures exposed via SteganoCore
that is
SteganoEncoder
for writing data into an imageSteganoDecoder
for reading data from an imageSteganoRawDecoder
for reading the plain raw bytes from an image
Usage Examples
Hide data inside an image
use stegano_core::{SteganoCore, SteganoEncoder};
SteganoCore::encoder()
.hide_file("Cargo.toml")
.use_media("../resources/plain/carrier-image.png").unwrap()
.write_to("image-with-a-file-inside.png")
.hide();
Unveil data from an image
use stegano_core::{SteganoCore, SteganoEncoder};
use stegano_core::commands::unveil;
use std::path::Path;
SteganoCore::encoder()
.hide_file("Cargo.toml")
.use_media("../resources/plain/carrier-image.png").unwrap()
.write_to("image-with-a-file-inside.png")
.hide();
unveil(
&Path::new("image-with-a-file-inside.png"),
&Path::new("./"));
Re-exports
Modules
Structs
Enums
a media container for steganography
wrap the low level data types that carries information
mutable primitive for storing stegano data