#steganography #steg #hiding #text #png

lsb_text_png_steganography

A steganography strategy that uses the least significant bits of a png to hide text

1 unstable release

0.1.0 Oct 27, 2018

#4 in #steg

Download history 7/week @ 2018-10-30 46/week @ 2018-11-06 12/week @ 2018-11-13 11/week @ 2018-11-20 6/week @ 2018-11-27 18/week @ 2018-12-04 7/week @ 2018-12-11 9/week @ 2018-12-18

1 downloads per month
Used in 1 crate

MIT license

12KB
167 lines

lsb_text_png_steganography

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

Usage

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

Dependencies

~2.5MB
~40K SLoC