Crates.io | lsb_png_steganography |
lib.rs | lsb_png_steganography |
version | 0.1.0 |
source | src |
created_at | 2018-10-21 21:21:42.742758 |
updated_at | 2018-10-21 21:21:42.742758 |
description | Least significant bit portable network graphic steganography |
homepage | |
repository | https://github.com/peterheesterman/lsb_png_steganography |
max_upload_size | |
id | 91899 |
size | 28,783 |
(Least significant bit portable network graphic steganography)
This repo is a module for the commandline tool steg
but can also be used independently
It takes paths to two pngs and hides the first in the second one, it can then reveal the hidden image.
Add the following to the Cargo.toml in your project:
[dependencies]
lsb_png_steganography = "*"
and import using extern crate
:
extern crate lsb_png_steganography;
use lsb_png_steganography::{ hide, reveal };
fn run () {
let payload_path = "./images/payload.png";
let carrier_path = "./images/carrier.png";
let output_carrier_path = "./output_carrier.png";
let output_payload_path = "./output_payload_path.png";
let img = hide(payload_path, carrier_path);
img.save(output_carrier_path).unwrap();
let img = reveal(output_carrier_path);
img.save(output_payload_path).unwrap();
}
Read it. . .(coming soon)