encryptFile | R Documentation |
Encrypt a data file
encryptFile(sourceFileName, targetFileName, publicKeyFileName)
sourceFileName |
Name of the file that must be encrypted. |
targetFileName |
Name of the file that will hold the encrypted data. |
publicKeyFileName |
Name of the file where the public key is stored. |
Encrypts the data using the provided public key.
## Not run:
generateKeyPair("public.key", "private.key")
data <- data.frame(x = runif(1000), y = 1:1000)
saveRDS(data, "data.rds")
encryptFile("data.rds", "data.rds.enc", "public.key")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.