Trait playfair::Cipher

source ·
pub trait Cipher {
    fn encrypt(&self, plaintext: &str) -> String;
    fn decrypt(&self, ciphertext: &str) -> String;
}
Expand description

Cipher trait, enforces encrypt and decrypt methods.

Required Methods§

Encryption logic for a given plaintext

Decryption logic for a given ciphertext

Implementors§