(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:
toml
[dependencies]
lsb_png_steganography = "*"
and import using extern crate
:
```rust extern crate lsbpngsteganography;
use lsbpngsteganography::{ hide, reveal };
fn run () { let payloadpath = "./images/payload.png"; let carrierpath = "./images/carrier.png"; let outputcarrierpath = "./outputcarrier.png"; let outputpayloadpath = "./outputpayload_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)