knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Easily store encrypted secrets on the local machine, and decrypt them later.
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("shunsambongi/vault")
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.