I have a sensitive data set that should never be stored unencrypted on disk. Can R deal with this or is full disk encryption my only option?
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- TCC __TCCAccessRequest_block_invoke
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Does google-hosted jquery helps google to track vi
I have a feeling there's an easier way to do this, but the
digest
package, which does AES encryption, is the closest thing I came across to what you are asking for. This should get you started.This uses ECB mode AES encryption. Obviously you need to use the same key to encrypt and decrypt.
write.aes(...)
converts the data frame to a csv-formatted text string, converts that to raw (which is required for AES), pads the raw vector out to a multiple of 16 bytes (also required for AES), encrypts, and writes to a binary file.read.aes(...)
basically reverses the process.This is just an example, intended to be modified to suit your needs. For instance, this saves the data frame without row names, which might or might not be a problem.