Trait message_verifier::Encryptor [] [src]

pub trait Encryptor {
    fn decrypt_and_verify(&self, _: &str) -> Result<Vec<u8>>;
    fn encrypt_and_sign(&self, _: &str) -> Result<String>;
}

Encryptor trait; similiar to ActiveSupport::MessageEncryptor. Implemented by AesHmacEncryptor and AesGcmEncryptor.

Required Methods

Implementors