lsb_text_png_steganography

Crates.iolsb_text_png_steganography
lib.rslsb_text_png_steganography
version0.1.2
sourcesrc
created_at2018-10-27 20:40:53.411012
updated_at2018-11-01 05:41:12.711151
descriptionA steganography strategy that uses the least significant bits of a png to hide text
homepage
repositoryhttps://github.com/peterheesterman/lsb_text_png_steganography
max_upload_size
id92983
size17,229
Peter Heesterman (peterheesterman)

documentation

README

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)
}
Commit count: 17

cargo fmt