Crate playfair

source ·
Expand description

Playfair cipher implementation in Rust

Structs

Keyword structure, used in constructing the matrix in which the encryption is performed over.
Playfair cipher structure, stores data needed during the encryption/decryption

Traits

Cipher trait, enforces encrypt and decrypt methods.

Type Definitions

Bigram type. Used in the Playfair cipher by grouping characters and performing operations on those pairs.
The Matrix type is a 5 by 5 character array.
Position type. Used to store an X, Y value for use in a matrix.