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