PGP decrypt stream transform Icon PGP decrypt stream

Description

The PGP Decrypt Stream transform decrypts PGP encrypted text.

Options

Option Description

Transform name

Name of the transform.

GPG location

GPG key location.

Browse…​

Browse the filesystem for a GPG key location.

Passphrase

Passphrase of the key.

Read passphrase from field

Whether or not to read the passphrase from a field.

Passphrase fieldname

The passphrase field.

Data fieldname

The field to decrypt.

Result fieldname

The decrypted result field.

Samples

The samples project has transforms/pgp-decrypt-stream.hpl, which encrypts the text secret message from a Data grid for the key of PGP_USER_ID, decrypts it again into the field opened, and writes both texts to the log. Install gpg, create or import a key pair, and set the variables PGP_GPG_LOCATION, the full path of gpg, PGP_USER_ID and PGP_PASSPHRASE before you run it. gpg runs in batch mode, so a key you imported must be trusted, for example with gpg --edit-key <user ID> trust; otherwise the transform fails with Unusable public key.