hips-lib

Performs text to image steganography by hinding and retrieving secret text within images or pixel arrays. This is achieved by encoding the secret in the least significant bits of the R, G, B values within the image.
Usage
Include hips-lib in your Cargo.toml:
hips-lib = "0.2.0"
Hide a secret in a vector of pixels:
use hips_lib::{color::Color, hips::{hide_secret_col, find_secret_col}};
fn main() {
let mut pixels = vec![Color::new(); 400];
let password = String::from("password");
let secret = String::from("Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua.");
hide_secret_col(&mut pixels, &secret, Some(password.to_owned())).unwrap();
let result = find_secret_col(&pixels, Some(password));
}
Images
Include the image feature in your Cargo.toml reference.
hips-lib = { version = "0.2.0", features = ["image"]}
use hips_lib::hips::{find_secret_img, hide_secret_img};
fn main() {
let secret = String::from("Lorem ipsum");
let password = String::from("password");
let result_img = hide_secret_img("test_images/peppers.png", &secret, Some(password));
let password = String::from("password");
let result = find_secret_img("test_images/image_with_secret_password.png", Some(password)).unwrap();
}