Crates.io | playfair-rs |
lib.rs | playfair-rs |
version | 0.1.0 |
source | src |
created_at | 2023-01-14 19:05:13.480239 |
updated_at | 2023-01-14 19:05:13.480239 |
description | Playfair cipher implemented in Rust |
homepage | https://github.com/orhun/playfair-rs |
repository | https://github.com/orhun/playfair-rs |
max_upload_size | |
id | 758995 |
size | 23,044 |
Playfair cipher implemented in Rust.
fn main() {
let encrypted = playfair_rs::encrypt("playfair example", "hide the gold in the tree stump", 'x').unwrap();
println!("{encrypted}"); // bmodzbxdnabekudmuixmmouvif
let decrypted = playfair_rs::decrypt("playfair example", &encrypted).unwrap();
println!("{decrypted}"); // hidethegoldinthetrexestump
}
All code is dual-licensed under The MIT License and Apache 2.0 License.
Copyright © 2023, Orhun Parmaksız