Encrypt With GPG
An Encrypt With GPG node encrypts each incoming file with a public key from your GPG Key Manager and passes on the encrypted file. Use it to encrypt a file for a partner right before a Copy File or Send via AS2 node delivers it, or to encrypt the same file with a different key on each of several branches when each recipient has their own key.
Encrypt With GPG accepts file items, and it accepts data items by writing each one to a .json file first, so a Transform node's output can be encrypted before delivery. GPG encryption applies to files up to 5 GB.
Settings
The node takes one key to encrypt with, selected from the GPG Key Manager. Encryption uses the recipient's public key, so the key entry can be a public key alone or a key pair. The optional destination path takes the same tokens and templates as every destination, and with no destination the encrypted file is written in the original's folder with .gpg added to its name. The overwrite setting is off by default, so an existing file at the destination fails the item with processing-failure/destination-exists instead of being replaced.
What the Next Node Receives
Encrypt With GPG passes on one file item for each encrypted file. The original file is unchanged, so a Delete File node after the delivery can remove it.
Errors
A file that no longer exists when the node runs fails with a not-found error. Error Handling rules on the node determine what happens to a failed item.
Encrypt With GPG vs. GPG Encryption on a Folder
GPG Encryption as a Folder Setting encrypts every file when it is uploaded or copied into that folder, with the keys configured on the folder. The Encrypt With GPG node encrypts where you place it in the graph, with the key you choose for that node, and only the files routed to it. Use the Folder Setting when everything written to a folder must be stored encrypted with one set of keys. Use the node when encryption is one node in a workflow, when the key depends on the branch or the partner, or when the encrypted file is delivered rather than stored.