pub struct Playfair { /* private fields */ }Expand description
Playfair cipher structure, stores data needed during the encryption/decryption
Implementations§
Source§impl Playfair
impl Playfair
Sourcepub fn new(kw: &str) -> Self
pub fn new(kw: &str) -> Self
Generates a new Playfair cipher structure with the keyword and appropriate alphabet padding to ensure it can fit into the matrix.
Sourcepub fn update_keyword(&mut self, kw: &str)
pub fn update_keyword(&mut self, kw: &str)
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§
Auto Trait Implementations§
impl Freeze for Playfair
impl RefUnwindSafe for Playfair
impl Send for Playfair
impl Sync for Playfair
impl Unpin for Playfair
impl UnwindSafe for Playfair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more