ferric_crypto_lib 0.2.7

A library for Ferric Crypto
Documentation
use crate::crypto_systems::des::DES;
use crate::error::DESError;
use crate::prelude::*;
use crate::Traits::Decrypt;

impl Decrypt<DESError, String, String> for DES {
    /// Decrypts a string using the des cipher.
    ///
    /// TODO: make decscription
    /// description goes here
    ///
    /// # Arguments
    ///
    /// * `cipher_text` - A `String` that holds the text to be decrypted.
    ///
    /// # Returns
    ///
    /// * A `Result<String, desError>` which is `Ok` if the decryption is successful, and `Err` otherwise.
    ///   The `Ok` variant contains the decrypted text, and the `Err` variant contains an error type.
    ///
    /// # Example
    ///
    /// TODO: make example
    fn decrypt(&self, cipher_text: String) -> Result<String, DESError> {
        unimplemented!()
    }
}

#[cfg(test)]
mod test {
    use super::*;
    use crate::Traits::Decrypt;

    // TODO: make tests for des decrypt implementation
}