steganography 0.2.2

A simple steganography library
Documentation

Build Status Crates.io Crates.io Docs.rs

steganography

A simple steganography library written in rust

Crates.io

Usage

Add the following to the Cargo.toml in your project:

[dependencies]
steganography = "*"

and import using extern crate:

extern crate steganography;

//Use steganography::

Writing a buffer to a file

let buffer = [0x00_u8];

let outputFile = write_to_file(&buffer, "test.jpg".to_string());

let ref mut outputPath = &Path::new("test.png");

let _ = out.save(outputPath).unwrap();

Reading a buffer from a file

let out_buf = read_from_file("test.png".to_string());

Testing

RUST_TEST_THREADS=1 cargo test