fn encipher(&self, ptext: &str) -> CipherResult {
        let ps = PolybiusSquare::new(&self.key, "ADFGX");
        let ct = ColumnarTransposition::new(&self.keyword);

        ct.encipher(&ps.encipher(ptext)?)
    }
/// Enciphers the given plaintext (a str reference) using the ADFGX cipher
/// and returns the ciphertext as a `CipherResult`.
///
/// # Example
/// ```
/// use ciphers::{Cipher, ADFGX};
///
/// let adfgx = ADFGX::new("PHQGMEAYNOFDXKRCVSZWBUTIL", "GERMAN");
///
/// let ctext = adfgx.encipher("DEFENDTHEEASTWALLOFTHECASTLE");
/// assert_eq!(ctext.unwrap(), "FFDGDDADXDAFAFXAAFAFDXDXXFDGDAGDDXXFAFADAFDXDDXDDADGXXGX");
/// ```
Enciphers the given plaintext (a str reference) using the ADFGX cipher
and returns the ciphertext as a `CipherResult`.
Enciphers the given plaintext ( a str reference ) using the ADFGX cipher and returns the ciphertext as a ` CipherResult ` .
fn encipher(&self, ptext: &str) -> CipherResult {
        let ps = PolybiusSquare::new(&self.key, "ADFGX");
        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 ADFGX cipher
and returns the ciphertext as a `CipherResult`.
Enciphers the given plaintext ( a str reference ) using the ADFGX cipher and returns the ciphertext as a ` CipherResult ` .
&self
ptext
&str
&self
ptext
&str
example
```
use ciphers::{Cipher, ADFGX}.

let adfgx = ADFGX::new("PHQGMEAYNOFDXKRCVSZWBUTIL", "GERMAN").


` ` ` use ciphers :: { Cipher ADFGX } . let adfgx = ADFGX :: new ( " PHQGMEAYNOFDXKRCVSZWBUTIL " " GERMAN " ) .