/// Enciphers the given plaintext (a str reference) using the ADFGVX cipher
/// and returns the ciphertext as a `CipherResult`.
///
/// # Example
/// ```
/// use ciphers::{Cipher, ADFGVX};
///
/// let adfgvx = ADFGVX::new("PH0QG64MEA1YL2NOFDXKR3CVS5ZW7BJ9UTI8", "GERMAN");
///
/// let ctext = adfgvx.encipher("DEFENDTHEEASTWALLOFTHECASTLE");
/// assert_eq!(ctext.unwrap(), "FFDVDFADFXFGFGAVFAFFDXDXFFDVDFFDGGAGVGVXFAGGDGADFADVFXGX");
/// ```
Enciphers the given plaintext (a str reference) using the ADFGVX cipher
and returns the ciphertext as a `CipherResult`.
Enciphers the given plaintext ( a str reference ) using the ADFGVX cipher and returns the ciphertext as a ` CipherResult ` .
fn encipher(&self, ptext: &str) -> CipherResult {
        let ps = PolybiusSquare::new(&self.key, "ADFGVX");
        let ct = ColumnarTransposition::new(&self.keyword);
        ct.encipher(&ps.encipher(ptext)?)
    }
fn encipher ( & self , ptext : & str ) -> CipherResult { let ps = PolybiusSquare :: new ( & self . key , " " ) ; let ct = ColumnarTransposition :: new ( & self . keyword ) ; ct . encipher ( & ps . encipher ( ptext ) ? ) }
Enciphers the given plaintext (a str reference) using the ADFGVX cipher
and returns the ciphertext as a `CipherResult`.
Enciphers the given plaintext ( a str reference ) using the ADFGVX cipher and returns the ciphertext as a ` CipherResult ` .
&self
ptext
&str
example
```
use ciphers::{Cipher, ADFGVX}.




` ` ` use ciphers :: { Cipher ADFGVX } .