Crates.io | stego_wps |
lib.rs | stego_wps |
version | 1.1.9 |
source | src |
created_at | 2024-01-20 04:51:16.674394 |
updated_at | 2024-01-20 10:52:19.659657 |
description | A library for text-based steganography using the Words Per Sentence (WPS) method. It allows encoding and decoding hidden messages within the structure of a given text. |
homepage | |
repository | https://github.com/JamesClarke7283/stego_wps |
max_upload_size | |
id | 1106223 |
size | 33,949 |
Stego WPS is a Rust library designed for text-based steganography using the Words Per Sentence (WPS) method. It enables the encoding and decoding of hidden messages within the structure of a given text, offering a unique approach to conceal information in plain sight.
To use Stego WPS in your Rust project, add the following to your Cargo.toml
file:
[dependencies]
stego_wps = "1"
Here's a quick overview of how to use Stego WPS in your Rust application:
use stego_wps::encode;
let text = "Your text here.";
let encoded = encode(text).expect("Failed to encode");
println!("Encoded text: {:?}", encoded);
use stego_wps::{decode, EncodingError};
let encoded_text = vec![...]; // Your encoded text
let character_set = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
let decoded = decode(&encoded_text, character_set).expect("Failed to decode");
println!("Decoded message: {}", decoded);
use stego_wps::compare;
let secret_message = "SECRET";
let cover_text = "Cover text with hidden message.";
let character_set = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
let comparison = compare(secret_message, cover_text, character_set).expect("Failed to compare");
println!("Comparison result: {:?}", comparison);
This project is licensed under the LGPL-3.0-or-later.
Contributions to Stego WPS are welcome! Feel free to fork the repository, make your changes, and submit a pull request.
Stego WPS is an ongoing project, and we appreciate feedback and contributions from the Rust community. For more information, issues, or feature requests, please visit the project repository.