PGP Encrypt File
Overview
Encrypts a file stored in your customer area using PGP encryption.
Use this node if your organisation uses PGP to encrypt and decrypt files.
If you want to encrypt files for use with the Paygate Agent then use the Encrypt File workflow node instead.
Configuration
Supply the node with the filename and path of the file to be encrypted.
Tokens
Special tokens can be used in path and filename fields to allow them to be dynamically named. For example: MyReport-21-09-2025
Token | Meaning | Example |
---|---|---|
{dd} | Current Day number | 12 |
{MM} | Current Month Number | 03 |
{yy} | Current Year (2d) | 25 |
{yyyy} | Current year (4d) | 2025 |
{hh} | Current Hour (24hr) | 07 |
{mm} | Current Minute | 45 |
{ss} | Current Second | 22 |
{SSS} | Current Millisecond | 123 |
PGP Public Key
In PGP, you encrypt files with a public key. And to decrypt files you use a private key.
Therefore, to correctly configure this node, you must supply it with the filename and path of the public key that will be used to encrypt the file.
You will, of course, have to put the public key onto your secure area of Paygate.
In the above example I have a public key named 0x22883C04.pub.asc and I have created a folder structure called ‘pgp\Jane Doe’ and placed the key into the ‘Jane Doe’ folder
The pgp key is in format like this:
—–BEGIN PGP PUBLIC KEY BLOCK—–
….key data….
—–END PGP PUBLIC KEY BLOCK—–
Encryption specification
RSA is supported with 1024, 2048 and 4096 (recommended) key lengths supported.