Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(
    key: &VaultKey,
    plaintext: &[u8],
) -> SafeResult<(Vec<u8>, Vec<u8>)>
Expand description

Encrypt plaintext with XChaCha20-Poly1305. Returns (nonce, ciphertext).