Encrypt files with PGP

Overview

The Encrypt Files With PGP Jon Entry can be used to encrypt and sign files using the GnuPG package.

The following pre-requisites must be met:

  1. GnuPG package must be installed in the runtime environment

  2. Encryption keys must be added to the runtime user keystore

Job Entry Options

 

image-20240522-235943.png

Job Entry Name: Name of the job entry.

General Tab

Option

Description

Option

Description

GPG location

The file path of the GnuPG executable (e.g., /usr/bin/gpg).

Use ASCII mode

Check to use ASCII mode when encrypting

Include subfolders

Check to include (encrypt) subfolders

Action

Select one of Encrypt, Sign, and Sign and Encrypt

File/Folder source

The file or folder to encrypt can be added to the Files/Folders list using Add.

Select the file or folder and then click Add to add the source to the list of Files/Folders to be encrypted.

File/Folder destination

Location where the encrypted files will be stored

Wildcard

A Regular Expression to determine which files will be encrypted. The file name should match against the regular expression.

User ID

User ID of the key in the user keystore

Files/Folders

The list of files/folders to encrypt. This is populated above and can be edited here

Destination Tab

image-20240523-000621.png

Option

Description

Option

Description

Create destination folder

Select to create the destination folder specified in “General” tab

Destination is a file

Indicate whether destination is a file

Add date to filename

Add date to filename. Default is after the extension. See option below.

Add time to filename

Add time to filename. Default is after the extension. See option below.

Specify Date time format

Specify the format to use when adding date / time to filename

Add date before extension

Add date / time to filename before the extension

If destination file exists

Behavior to follow if a file with the same name already exists in the destination

Advanced Tab

 

 

Option

Description

Option

Description

Success condition

Define when the Job Entry execution is considered a success

  • Success when all works fine

  • Success when at least x files decrypted

  • Success when number of errors lesser than

Nr errors less than

Specify the parameters for “Success when at least x files decrypted” and “Success when number of errors lesser than” options above