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

Encrypt plaintext for the given recipients.

  • config: GPG config
  • recipients: list of recipient fingerprints to encrypt for
  • plaintext: plaintext to encrypt

Panics

Panics if list of recipients is empty.