Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    algorithm: EncryptionAlgorithm,
    repo_key: &[u8],
    path: &str,
    plaintext: &[u8],
) -> Result<Vec<u8>>
Expand description

Encrypt plaintext content for a given file path.

ยงErrors

Returns an error if key derivation or AES-SIV encryption fails, or if the crypto-aes-siv feature is not enabled.