#steganography #steg #hiding #text #png

lsb_text_png_steganography

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

3 releases

0.1.2 Nov 1, 2018
0.1.1 Nov 1, 2018
0.1.0 Oct 27, 2018

#5 in #steganography

41 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
~39K SLoC