Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    plaintext: &[u8],
    recipients: &[MurkRecipient],
) -> Result<Vec<u8>, CryptoError>
Expand description

Encrypt plaintext bytes to one or more recipients.

Plugin recipients are grouped by plugin name and dispatched via RecipientPluginV1. Native (age/ssh) recipients pass through directly.