pub fn encrypt_bytes( key: &[u8], bytes: &[u8], nonce_bytes: Option<&[u8]>) -> Vec<u8> ⓘ
Encrypt a byte array using a vault’s key.
key - A vault’s key.
key
bytes - The bytes to encrypt.
bytes
nonce_bytes - The bytes of the nonce to use.
nonce_bytes