Crates.io | lsb_text_png_steganography |
lib.rs | lsb_text_png_steganography |
version | 0.1.2 |
source | src |
created_at | 2018-10-27 20:40:53.411012 |
updated_at | 2018-11-01 05:41:12.711151 |
description | A steganography strategy that uses the least significant bits of a png to hide text |
homepage | |
repository | https://github.com/peterheesterman/lsb_text_png_steganography |
max_upload_size | |
id | 92983 |
size | 17,229 |
(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)
}