PGP Decrypt File
Overview
Decrypts a file stored in your customer area using PGP decryption.
Use this node if your organisation uses PGP to encrypt and decrypt files.
If you want to decrypt files for use with the Paygate Agent then use the Decrypt File workflow node instead.
Configuration
Supply the node with the filename and path of the file to be decrypted.
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 Private Key
In PGP you decrypt files with a private key. And to encrypt files you use a private key.
Therefore, to correctly configure this node, you must supply it with the filename and path of the private key you will use to decrypt the file.
You will, of course, have to put the private key onto your secure area of Paygate.
In the above example I have a private key named 0x22883C04.sec.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 PRIVATE KEY BLOCK—–
….key data….
—–END PGP PRIVATE KEY BLOCK—–
In order to protect the private key is was generated with a passphrase. The passphrase is added to the form and will be used by the node to unlock the private decryption key.
Encryption specification
RSA is supported with 1024, 2048 and 4096 (recommended) key lengths supported.