encrypt | R Documentation |
Save an encrypted RDS
encrypt(robj, dst = NULL, key, additional_data = NULL, compress = "none")
robj |
R object |
dst |
Either a filename or NULL. Default: NULL write results to a raw vector |
key |
The encryption key. This may be a character string, a 32-byte raw vector or a 64-character hex string (which encodes 32 bytes). When a shorter character string is given, a 32-byte key is derived using the Argon2 key derivation function. |
additional_data |
Additional data to include in the
authentication. Raw vector or character string. Default: NULL.
This additional data is not
included with the encrypted data, but represents an essential
component of the message authentication. The same |
compress |
compression type. Default: 'none'. Valid values are any of
the accepted compression types for R |
Raw vector containing encrypted object written to file or returned
key <- argon2('my key')
encrypt(mtcars, key = key) |>
decrypt(key = key)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.