Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(data: &[u8], passphrase: &str) -> Result<Vec<u8>>
Expand description

Encrypt data with passphrase using age passphrase mode.

Returns the raw ciphertext bytes (armored age format).

ยงErrors

Propagates errors from the age encryptor if the underlying I/O fails.