encrypt_and_armor

Function encrypt_and_armor 

Source
pub fn encrypt_and_armor(
    recipient: &impl Recipient,
    plaintext: &[u8],
) -> Result<String, EncryptError>
Available on crate feature armor only.
Expand description

Encrypts the given plaintext to the given recipient, and wraps the ciphertext in ASCII armor.

To encrypt to more than one recipient, use Encryptor::with_recipients along with ArmoredWriter.