| Crates.io | polygraphia |
| lib.rs | polygraphia |
| version | 0.1.1 |
| created_at | 2025-12-25 00:00:34.854756+00 |
| updated_at | 2026-01-25 21:34:51.980985+00 |
| description | A comprehensive library for classical and modern cryptographic algorithms. |
| homepage | https://github.com/fathiabdelmalek/polygraphia |
| repository | https://github.com/fathiabdelmalek/polygraphia |
| max_upload_size | |
| id | 2004025 |
| size | 84,555 |
A comprehensive Rust library for classical and modern cryptographic algorithms.
Add to your Cargo.toml:
[dependencies]
polygraphia = "0.1.1"
use polygraphia::classical::Caesar;
use polygraphia::traits::Cipher;
let cipher = Caesar::new(3);
let encrypted = cipher.encrypt("hello")?;
let decrypted = cipher.decrypt(&encrypted)?;
use polygraphia::classical::Caesar;
let cipher = Caesar::new(3);
use polygraphia::classical::Affine;
let cipher = Affine::new(5, 8)?;
use polygraphia::classical::Playfair;
let cipher = Playfair::new("secret")?;
use polygraphia::classical::Hill;
let cipher = Hill::new("hill")?;
Apache-2.0