Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    cfg: &Pgp,
    recipients: &[String],
    sign: bool,
    data: &[u8],
) -> Result<String>
Expand description

Armored encryption of data to every recipient address (gpg finds the keys), optionally signed in the same pass. –trust-model always mirrors mutt: keys are picked by address, not by web-of-trust.