[][src]Trait secret_msg::SecretMessage

pub trait SecretMessage {
    fn one_way_encrypt(&self) -> String;
fn encrypt(&self) -> (String, usize);
fn decrypt(&self, key: usize) -> String; }

Required methods

fn one_way_encrypt(&self) -> String

encrypt_character a msg with no easy way to get the original back

fn encrypt(&self) -> (String, usize)

encrypt_character a msg -> returns an encrytped msg and a decrypt key

fn decrypt(&self, key: usize) -> String

decrypt_character a msg using decrypt key

Loading content...

Implementors

impl<T: ToString> SecretMessage for T[src]

Loading content...