Crates.io | ppm_steganography |
lib.rs | ppm_steganography |
version | 0.1.0 |
source | src |
created_at | 2022-08-02 12:54:47.499645 |
updated_at | 2022-08-02 12:54:47.499645 |
description | A small crate to hide data using 2 lsb of each bytes into a ppm image |
homepage | |
repository | https://github.com/KiwiDch/stegano |
max_upload_size | |
id | 637316 |
size | 617,723 |
A small crate to hide data using 2 lsb of each bytes into a ppm image
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