gaborcsardi / secret

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

GPG support? #43

Closed egoipse closed 4 years ago

egoipse commented 4 years ago

Hi... This package is great.

One feature would make it more powerful: GPG support.

As long as I tried, it seems to only work with PGP for asymmetric encryption. But GPG is incresing its marketshare. It would be great if we can use it with this package....

gaborcsardi commented 4 years ago

AFAIK PGP and GPG keys should be compatible. Can you please show what you tried that didn't work?

egoipse commented 4 years ago

Sure... I created a key-pair with gpg terminal commands. Then I tried to read the private key with try(local_key(), silent = F), as stated in the Readme file. And I got an error message: Error in read_key(path) : Failed to parse private key PEM file.

It works fine with a PGP generated private key. `

gaborcsardi commented 4 years ago

secret uses openssl to read in the key, and apparently it cannot read gpg keys.

One option would be to use a tool to convert your gpg key to a pgp or openssl key. Unfortunately I am not sure about the current best option to do that.

egoipse commented 4 years ago

Ok. Thanks for the info. I'll explore which way is the better one to deal with this issue.