Encrypt or decrypt messages using PKCS7 smime format. Note PKCS7 only supports RSA keys.
pkcs7_encrypt(message, cert, pem = TRUE)pkcs7_decrypt(input, key, der = is.raw(input))
text or raw vector with data to encrypt
the certificate with public key to use for encryption
convert output pkcs7 data to PEM format
file path or string with PEM or raw vector with p7b data
private key to decrypt data
assume input is in DER format (rather than PEM)
encrypt_envelope