att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
429 stars 141 forks source link

enhance rcloud.encrypt/rcloud.decrypt to handle user and group keys #2759

Closed s-u closed 2 years ago

s-u commented 2 years ago

rcloud.encrypt and rcloud.decrypt are great, but require explicit supply of the key.

It would be nice if rcloud.decrypt could handle decryption of the types that are supported by RCloud such as user-key encryption and group-hash encryption. It already has all it needs and we do already all the work in .gist.binary.process.incoming so it could simply shift to rcloud.decrypt since it requires no user arguments.

rcloud.encrypt could be enhanced for symmetry to allow specification of the group or an argument to use the user key (the latter is trivial, but currently wouldn't flag the result with the key type metadata).

(As a convenience wrapper it it would be nice to have corresponding readRDS and saveRDS versions for storing intermediate results in encrypted form)