pub fn encrypt(
    context: &mut Context,
    recipients: &[&str],
    plaintext: Plaintext
) -> Result<Ciphertext>
Expand description

Encrypt plaintext for the given recipients.

  • context: GPGME context
  • recipients: list of recipient fingerprints to encrypt for
  • plaintext: plaintext to encrypt

Panics

Panics if list of recipients is empty.