https://github.com/orhun/playfair-rs
Playfair cipher implemented in Rust
https://github.com/orhun/playfair-rs
playfair playfair-cipher rust
Last synced: 3 months ago
JSON representation
Playfair cipher implemented in Rust
- Host: GitHub
- URL: https://github.com/orhun/playfair-rs
- Owner: orhun
- License: apache-2.0
- Created: 2023-01-10T11:51:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-14T19:12:43.000Z (over 2 years ago)
- Last Synced: 2025-04-16T00:04:58.002Z (3 months ago)
- Topics: playfair, playfair-cipher, rust
- Language: Rust
- Homepage: https://en.wikipedia.org/wiki/Playfair_cipher
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE-APACHE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# playfair-rs
[](https://github.com/orhun/playfair-rs/actions)
[](https://crates.io/crates/playfair_rs)
[](https://docs.rs/playfair_rs/latest)
[](https://app.codecov.io/gh/orhun/playfair-rs)[Playfair cipher](https://en.wikipedia.org/wiki/Playfair_cipher) implemented in Rust.
## Usage
```rs
fn main() {
let encrypted = playfair_rs::encrypt("playfair example", "hide the gold in the tree stump", 'x').unwrap();
println!("{encrypted}"); // bmodzbxdnabekudmuixmmouviflet decrypted = playfair_rs::decrypt("playfair example", &encrypted).unwrap();
println!("{decrypted}"); // hidethegoldinthetrexestump
}
```## License
All code is dual-licensed under [The MIT License](./LICENSE-MIT) and [Apache 2.0 License](./LICENSE-APACHE).
## Copyright
Copyright © 2023, [Orhun Parmaksız](mailto:[email protected])