ppm_steganography

Crates.ioppm_steganography
lib.rsppm_steganography
version0.1.0
sourcesrc
created_at2022-08-02 12:54:47.499645
updated_at2022-08-02 12:54:47.499645
descriptionA small crate to hide data using 2 lsb of each bytes into a ppm image
homepage
repositoryhttps://github.com/KiwiDch/stegano
max_upload_size
id637316
size617,723
Elian Ducheyne (KiwiDch)

documentation

README

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

Commit count: 14

cargo fmt