#' @keywords internal
decrypt <- function(password) {
rcrypt::decrypt('encrypted.gpg',
output = 'temp',
passphrase = password)
if (!file.exists('encrypted.gpg')) {
stop('No encrypted file')
}
if (file.exists('temp')) {
token <- readLines('temp')
file.remove('temp')
return(token)
} else {
warning('Wrong Password')
return(NULL)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.