ppm_steganography 0.1.0

A small crate to hide data using 2 lsb of each bytes into a ppm image
Documentation
1
2
3
4
5
6
7
8
9
10
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();
}