1 unstable release

0.1.0 Jan 14, 2023

#2017 in Cryptography

Download history 3/week @ 2024-02-14 84/week @ 2024-02-21 12/week @ 2024-02-28 2/week @ 2024-03-06 2/week @ 2024-03-13

103 downloads per month

MIT/Apache

11KB
149 lines

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 © 2023, Orhun Parmaksız

No runtime deps