Struct playfair::Playfair

source ·
pub struct Playfair { /* private fields */ }
Expand description

Playfair cipher structure, stores data needed during the encryption/decryption

Implementations§

Generates a new Playfair cipher structure with the keyword and appropriate padding to ensure it can fit into the matrix.

Get a copy of the keyword of the Playfair structure

Allow updating the current keyword of the Playfair object. This may be useful if you are encrypting and decrypting amonst multiple parties at once, and have numerous different keywords / matricies to operate over.

Trait Implementations§

Encryption logic for a given plaintext

Decryption logic for a given ciphertext

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.