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
fn decrypt_and_verify(&self, _: &str) -> Result<Vec<u8>>
fn encrypt_and_sign(&self, _: &str) -> Result<String>
Implementors
impl Encryptor for AesHmacEncryptor
impl Encryptor for AesGcmEncryptor