Encrypt or decrypt a message using the public key from the receiver
.
Optionally the message can be signed using the private key of the sender.
gpg_encrypt(data, receiver, signer = NULL)gpg_decrypt(data, verify = TRUE, as_text = TRUE)
path or raw vector with data to encrypt / decrypt
key id(s) or fingerprint(s) for recepient(s)
(optional) key id(s) or fingerprint(s) for the sender(s) to sign the message
automatically checks that all signatures (if any) can be verified and raises an error otherwise
convert output to text. Set to FALSE if you expect binary data.
Other gpg:
gpg_keygen()
,
gpg_keys
,
gpg_sign()