Skip to content

KiwiDch/ppm_steganography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Crates.io Docs.rs

Licence

MIT Licence or Apache 2.0

About

A small crate for hide data into ppm image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages