ppm_steganography 0.1.0

A small crate to hide data using 2 lsb of each bytes into a ppm image
Documentation
  • Coverage
  • 25.93%
    7 out of 27 items documented0 out of 14 items with examples
  • Size
  • Source code size: 617.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 46s Average build duration of successful builds.
  • all releases: 46s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • KiwiDch/ppm_steganography
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • KiwiDch

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();
}

Original image
Image to hide
Result

see ./examples for others

Licence

MIT Licence or Apache 2.0