Skip to content

Playfair cipher implemented in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

orhun/playfair-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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