Description Usage Arguments Details Value Examples
Reads or writes a file using sodium encryption
1 2 3 | sodium_read(path, key = sodium_get_key_or_ask())
sodium_write(object, path, key = sodium_get_key_or_ask(), ...)
|
path |
string; path to |
key |
string; encryption key |
object |
object to store. |
... |
additional arguments sent to |
sodium_read()
reads a sodium encrypted object at path.
sodium_write()
stores an encrypted object to the path.
In most cases,cache::cache()
/ cache::uncache()
and
cache::cache_write()
/cache::cache_read()
should be used.
The extension given to sodium encrypted files is sodium.rds
.
object
(In order to be pipe-able, the object must be returned)
1 2 | sodium_write( iris, 'iris.rds', "my key" )
sodium_read( 'iris.rds', "my key" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.