Polygraphia
A comprehensive Rust library for classical and modern cryptographic algorithms.
Features
- Classical Ciphers: Caesar, Affine, Hill, Playfair
- Text Modes: Preserve all characters or alphabetic only
- Key Derivation: PBKDF2-HMAC-SHA512/256
- FFI Support: C-compatible shared library (coming soon!)
- Type-Safe: Leverages Rust's type system for security
Installation
Add to your Cargo.toml:
[]
= "0.1.1"
Quick Start
use Caesar;
use Cipher;
let cipher = new;
let encrypted = cipher.encrypt?;
let decrypted = cipher.decrypt?;
Algorithms
Caesar Cipher
use Caesar;
let cipher = new;
Affine Cipher
use Affine;
let cipher = new?;
Playfair Cipher
use Playfair;
let cipher = new?;
Hill Cipher
use Hill;
let cipher = new?;
License
Apache-2.0