sodium_read: Read and write using sodium

Description Usage Arguments Details Value Examples

View source: R/sodium_read.R

Description

Reads or writes a file using sodium encryption

Usage

1
2
3

Arguments

path

string; path to

key

string; encryption key

object

object to store.

...

additional arguments sent to base::readRDS()

Details

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.

Value

object (In order to be pipe-able, the object must be returned)

Examples

1
2
  sodium_write( iris, 'iris.rds', "my key" )
  sodium_read( 'iris.rds', "my key" )

decisionpatterns/cache.sodium documentation built on May 27, 2020, 3:21 a.m.