| Crates.io | simple_hider |
| lib.rs | simple_hider |
| version | 0.1.0 |
| created_at | 2023-01-07 17:34:18.371662+00 |
| updated_at | 2023-01-07 17:34:18.371662+00 |
| description | A crate for hiding and unhiding text with a salt value |
| homepage | |
| repository | |
| max_upload_size | |
| id | 753160 |
| size | 4,612 |
Implementation of the hider/cypher algorithm by Jorge Blom in Rust, for educational purposes.
use simple_hider::{hide, unhide};
let text = "Hello";
let salt = "salt";
let encrypted = hide(salt, text);
let decrypted = unhide(salt, encrypted);
assert_eq!(text, decrypted);