playfair-rs

Crates.ioplayfair-rs
lib.rsplayfair-rs
version0.1.0
sourcesrc
created_at2023-01-14 19:05:13.480239
updated_at2023-01-14 19:05:13.480239
descriptionPlayfair cipher implemented in Rust
homepagehttps://github.com/orhun/playfair-rs
repositoryhttps://github.com/orhun/playfair-rs
max_upload_size
id758995
size23,044
Orhun Parmaksız (orhun)

documentation

README

playfair-rs

GitHub Workflow Status Crates.io docs.rs Codecov

Playfair cipher implemented in Rust.

Usage

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
}

License

All code is dual-licensed under The MIT License and Apache 2.0 License.

Copyright

Copyright © 2023, Orhun Parmaksız

Commit count: 12

cargo fmt