encrypt()/decrypt() can process any R
object understood by serialize()
The encryption technique in this package is XChaCha20-Poly1305 which is the extended nonce variant of the ChaCha20-Poly1305 technique used in IPsec, SSH and Wireguard.
The encryption method follows RFC 8439 ‘Authenticated Encryption with Additional Data (AEAD)’
The data structure is a concatenation of the nonce, mac and encrypted data
[nonce] [mac] [encrypted data]
[nonce] = 24 bytes[mac] = 16 bytes[encrypted data] = remaining bytesThe package relies on the cryptographic algorithms supplied by monocypher