[][src]Trait forge_crypter::Crypter

pub trait Crypter {
    fn encrypt(&self, message: &[u8]) -> Vec<u8>;
fn decrypt(&self, message: &[u8]) -> Vec<u8>; }

trait Crypter has two function:

  • encrypt: encrypt plain message to cipher message
  • decrypt: decrypt cipher message to plain message

Required methods

fn encrypt(&self, message: &[u8]) -> Vec<u8>

fn decrypt(&self, message: &[u8]) -> Vec<u8>

Loading content...

Implementors

impl Crypter for Aes[src]

Loading content...