Skip to main content

encrypt

Function encrypt 

Source
pub(super) fn encrypt(
    key: &[u8],
    plaintext: &[u8],
    iv: &[u8],
    aad: &[u8],
) -> Result<Vec<u8>, OnePasswordError>
Expand description

AES-256-GCM encrypt, returning ciphertext || tag.