encrypt_token.Rd
Following https://gargle.r-lib.org/articles/articles/managing-tokens-securely.html#encrypt-the-secret-file, this function writes an encrypted version of the input file to a specified directory, such as a Shiny Web App's "www" subfolder. The supplied destination path is suffixed with a ".secret" folder.
encrypt_token(service, input, destination)
service | Identifier of the service whose token will be encrypted. |
---|---|
input | The token file to encrypt, typically a ".json" file. |
destination | The output directory you would like to store this file, e.g. in a Shiny Web App's "www" subdirectory. |
NA; used for side effects to create an encrypted token file.