All Projects → teovoinea → steganography

teovoinea / steganography

Licence: MIT license
A simple steganography library written in rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to steganography

pixcryption
📷 Pixel Safe Encryption - Now Cryptographically Secure 🔒
Stars: ✭ 56 (-25.33%)
Mutual labels:  steganography, steganography-library
kingslayer
A text-based adventure written in Rust
Stars: ✭ 28 (-62.67%)
Mutual labels:  crates
euli treasure hunt
Euli is not a computer game but a tool which helps you set up a real life treasure hunt
Stars: ✭ 34 (-54.67%)
Mutual labels:  steganography
fitparse-rs
Rust library to parse FIT formatted files
Stars: ✭ 20 (-73.33%)
Mutual labels:  crates
picamo
A Node JS steganography tool for the tin foil hat revolution!
Stars: ✭ 15 (-80%)
Mutual labels:  steganography
crates
crates is an extension aims to help people to manage their dependencies for rust (crates.io & TOML).
Stars: ✭ 156 (+108%)
Mutual labels:  crates
stegjs
Encrypt message to PNG image.
Stars: ✭ 18 (-76%)
Mutual labels:  steganography
PyTorch-Deep-Image-Steganography
A PyTorch implementation of image steganography utilizing deep convolutional neural networks
Stars: ✭ 71 (-5.33%)
Mutual labels:  steganography
obj-rs
Wavefront obj parser for Rust
Stars: ✭ 57 (-24%)
Mutual labels:  crates
cargo-limit
Cargo with less noise: warnings are skipped until errors are fixed, Neovim integration, etc.
Stars: ✭ 105 (+40%)
Mutual labels:  crates
naersk
Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly. [maintainer: @Patryk27]
Stars: ✭ 440 (+486.67%)
Mutual labels:  crates
HiddenWave
Hide Your Secret Message in any Wave Audio File.
Stars: ✭ 97 (+29.33%)
Mutual labels:  steganography
version-compare
↔️ Rust library to easily compare version strings. Mirror from https://gitlab.com/timvisee/version-compare
Stars: ✭ 32 (-57.33%)
Mutual labels:  crates
leetcode-cli
May the code be with you 👻
Stars: ✭ 177 (+136%)
Mutual labels:  crates
Hidden-Eye
Hide data into Picture
Stars: ✭ 39 (-48%)
Mutual labels:  steganography
cv
Rust CV mono-repo. Contains pure-Rust dependencies which attempt to encapsulate the capability of OpenCV, OpenMVG, and vSLAM frameworks in a cohesive set of APIs.
Stars: ✭ 426 (+468%)
Mutual labels:  crates
TryHackMe-Write-Up
The entire walkthrough of all my resolved TryHackMe rooms
Stars: ✭ 53 (-29.33%)
Mutual labels:  steganography
Steganography
Image & video steganography in Matlab
Stars: ✭ 31 (-58.67%)
Mutual labels:  steganography
frontend-park
哈喽大家好~我是荣顶!这是一个有趣的前端趣味知识公园~该项目是我平时捣鼓前端相关技术的一些案例集合。
Stars: ✭ 66 (-12%)
Mutual labels:  steganography
AperiSolve
Steganalysis web platform
Stars: ✭ 268 (+257.33%)
Mutual labels:  steganography

Build Status Build Status Build status Crates.io Crates.io Docs.rs dependency status

steganography

A stable 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::encoder::*;
use steganography::decoder::*;
use steganography::util::*;
*/

Writing a message to a file

//Define a secret message to hide in out picture
let message = "This is a steganography demo!".to_string();
//Convert our string to bytes
let payload = str_to_bytes(&message);
//Load the image where we want to embed our secret message
let destination_image = file_as_dynamic_image("example.jpg".to_string());
//Create an encoder
let enc = Encoder::new(payload, destination_image);
//Encode our message into the alpha channel of the image
let result = enc.encode_alpha();
//Save the new image
save_image_buffer(result, "hidden_message.png".to_string());

Reading a message from a file

//Load the image with the secret message
let encoded_image = file_as_image_buffer("examples/decode_message.png".to_string());
//Create a decoder
let dec = Decoder::new(encoded_image);
//Decode the image by reading the alpha channel
let out_buffer = dec.decode_alpha();
//If there is no alpha, it's set to 255 by default so we filter those out
let clean_buffer: Vec<u8> = out_buffer.into_iter()
                                    .filter(|b| {
                                        *b != 0xff_u8
                                    })
                                    .collect();
//Convert those bytes into a string we can read
let message = bytes_to_str(clean_buffer.as_slice());
//Print it out!
println!("{:?}", message);

Running the examples

cargo build --example example_encode
cargo run --example example_encode
cargo build --example example_decode
cargo run --example example_decode

Testing

cargo test -- --test-threads=1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].