knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

vault

Lifecycle: experimental

Easily store encrypted secrets on the local machine, and decrypt them later.

Installation

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("shunsambongi/vault")

Basic Usage

library(vault)

key <- generate_key() # Usually, you would get this from somewhere secure, see `?use_vault_key`

write_secret(
  service = "MyApp", name = "username", secret = "bob_loblaw", key = key
)
write_secret(
  service = "MyApp", name = "password", secret = "password1234", key = key
)

read_secret(service = "MyApp", name = "username", key = key) # bob_loblaw
read_secret(service = "MyApp", name = "password", key = key) # password1234

Related Packages



shunsambongi/vault documentation built on March 19, 2020, 4:58 p.m.