gaborcsardi / secret

:closed_lock_with_key: Secure sharing of sensitive information in R packages
Other
102 stars 16 forks source link

Support for compressed secrets #36

Open s-fleck opened 4 years ago

s-fleck commented 4 years ago

Would it be possible to support compression for secrets (similar to the different compression algorithms supported by saveRDS?). I sometimes have to store sensitive datasets inside packages in a setting where file size matters (a bit).

gaborcsardi commented 4 years ago

Can you compress the file first, and then add it to the vault?

s-fleck commented 4 years ago

in my case it's a data.frame with confidential data. sure I could probably serialize it zipped, read it as a raw binary vector or something and put that in a secret. that's kinda hackish though and it would be nice if it was supported directly by secret.

sorry for the accidental opening and closing of the issue BTW, I'm on my phone

gaborcsardi commented 4 years ago

Yeah, it would make sense to compress it I guess. We could saveRDS() it into a connection in memory.