(Least significant bit text into portable network graphic steganography)
This repo is a module for the commandline tool steg
but can also be used independently
A steganography strategy that uses the least significant bits of a png to hide text.
Add the following to the Cargo.toml in your project:
[dependencies]
lsb_text_png_steganography = "*" ## replace with latest version
and import using extern crate
:
extern crate lsb_text_png_steganography;
use lsb_text_png_steganography::{ hide, reveal };
fn run () {
let payload_path = "./texts/payload.txt";
let carrier_path = "./images/carrier.png";
let output_carrier_path = "./output_carrier.png";
// hide
let img = hide(payload_path, carrier_path);
img.save(output_path).unwrap();
// reveal
let text = reveal(output_path);
println!(text)
}