1 unstable release
0.1.0 | Aug 2, 2022 |
---|
#10 in #ppm
540KB
184 lines
ppm_steganography
A small crate to hide data using 2 lsb of each bytes into a ppm image
Usage
encoding image from ./examples/encode_img
use std::str::FromStr;
fn main() {
let mut encoder = ppm_steganography::encoder::Encoder::new(std::path::PathBuf::from_str("examples/kiwi.ppm").unwrap()).unwrap();
encoder.try_update_from_file(std::path::PathBuf::from_str("examples/to_hide.ppm").unwrap()).unwrap();
encoder.encode_and_save(std::path::PathBuf::from_str("examples/kiwi_hidden_image.ppm").unwrap()).unwrap();
}
see ./examples for others
Licence
lib.rs
:
Encoder write data on the 2 lsb on each bytes of the image given Decoder try to find data written with the same format of the Encoder
Dependencies
~5MB
~62K SLoC