gy_encrypt: Encrypt and decrypt a pre-serialised object using goldeneye

View source: R/gy_encrypt.R

gy_encryptR Documentation

Encrypt and decrypt a pre-serialised object using goldeneye

Description

Encrypt and decrypt a pre-serialised object using goldeneye

Usage

gy_encrypt(
  object,
  users = character(0),
  local_user = TRUE,
  comment = "",
  funs = gy_key_funs("identity")
)

gy_decrypt(object, run_custom = TRUE)

get_public_keys(users, type = "curve")

Arguments

object

the serialised object to encrypt

users

a character vector of (other) users within your current user group for whom the encrypted file will be decryptable. Alternatively, this can be a vector of paths/urls to public keys, or a mixture of the two.

local_user

should the current user also be able to decrypt thw file?

comment

an optional comment that will be sent (unencrypted) along with the file

funs

optional additional encryption steps: this must be the output of a call to gy_key_funs

run_custom

should any custom decryption functions be run automatically?

type

the type of public key to return ("curve" or "ed")


ku-awdc/goldeneye documentation built on Jan. 30, 2024, 12:35 a.m.