pub trait Cipher { fn encrypt(&self, plaintext: &str) -> String; fn decrypt(&self, ciphertext: &str) -> String; }
Cipher trait, enforces encrypt and decrypt methods.
encrypt
decrypt
Encryption logic for a given plaintext
Decryption logic for a given ciphertext