#steganography #png #steg #hiding

lsb_png_steganography

Least significant bit portable network graphic steganography

1 unstable release

0.1.0 Oct 21, 2018

#2 in #steg

Download history 13/week @ 2018-10-24 2/week @ 2018-10-31 14/week @ 2018-11-07 3/week @ 2018-11-14 3/week @ 2018-11-21 2/week @ 2018-11-28 6/week @ 2018-12-05 3/week @ 2018-12-12 7/week @ 2018-12-19

4 downloads per month
Used in 1 crate

MIT license

25KB
128 lines

lsb_png_steganography

(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.

Usage

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();
}

Documentation

Read it. . .(coming soon)

Dependencies

~2.5MB
~39K SLoC