classic_crypto
A number of classical ciphers implemented in Rust, with the capability to supply a character set for any language.
CLI
There is a CLI available for this library here.
Usage
Add this line to your Cargo.toml
= "0.1.0"
Example
use ;
Supported Ciphers
Name | Encrypt/Decrypt | Solve |
---|---|---|
ADFGVX | ⬜️ | ⬜️ |
ADFGX | ⬜️ | ⬜️ |
Affine | ✅ | ✅ |
Atbash | ✅ | N/A |
Autokey | ✅ | ✅ |
Baconian | ✅ | N/A |
Beaufort | ✅ | ✅ |
Bellaso | ✅ | ✅ |
Bifid | ⬜️ | ⬜️ |
Block Transposition | ✅ | ✅ |
Caesar | ✅ | ✅ |
Chaocipher | ⬜️ | ⬜️ |
Classic Vigenère | ✅ | ✅ |
Clock | ✅ | ✅ |
Chase | ✅ | ✅ |
Column Transposition | ✅ | ✅ |
Enigma M3/M4 | ✅ | ⬜️ |
Fialka | ⬜️ | ⬜️ |
Four Square | ⬜️ | ⬜️ |
Fractionated Morse | ⬜️ | ⬜️ |
Hill (2x2 and 3x3 matrices) | ⬜️ | ⬜️ |
Homophonic Substitution | ⬜️ | ⬜️ |
Keyed Vigenère | ✅ | ⬜️ |
Lorenz | ⬜️ | ⬜️ |
Morse | ✅ | N/A |
Myszkowski Transposition | ⬜️ | ⬜️ |
Playfair | ⬜️ | ⬜️ |
Polybius Square | ⬜️ | ⬜️ |
Porta | ✅ | ✅ |
Purple | ⬜️ | ⬜️ |
Railfence | ✅ | ✅ |
Rot13 | ✅ | N/A |
Scytale | ✅ | ✅ |
Simple Substitution | ✅ | ✅ |
Solitaire | ⬜️ | ⬜️ |
Straddle Checkerboard | ⬜️ | ⬜️ |
Trifid | ⬜️ | ⬜️ |
Two Square | ⬜️ | ⬜️ |
Typex | ⬜️ | ⬜️ |
VIC | ⬜️ | ⬜️ |