tGPGDecrypt - 6.1

Talend Components Reference Guide

Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
Talend Studio
Data Governance
Data Quality and Preparation
Design and Development

tGPGDecrypt Properties

Component family




Decrypts a GnuPG-encrypted file and saves the decrypted file in the specified target directory.


This component calls the gpg -d command to decrypt a GnuPG-encrypted file and saves the decrypted file in the specified directory.

Basic settings

Input encrypted file

File path to the encrypted file.


Output decrypted file

File path to the output decrypted file.


GPG binary path

File path to the GPG command.



Enter the passphrase used in encrypting the specified input file.

To enter the passphrase, click the [...] button next to the passphrase field, and then in the pop-up dialog box enter the passphrase between double quotes and click OK to save the settings.


No TTY Terminal

Select this check box to speficy that no TTY terminal is used by adding the --no-tty option to the decryption command.

Advanced settings

tStatCatcher Statistics

Select this check box to gather the processing metadata at the Job level as well as at each component level.

Global Variables

FILE: the name of the output file. This is a Flow variable and it returns a string.

FILEPATH: the path of the output file. This is a Flow variable and it returns a string.

ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl + Space to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio User Guide.


This component can be used as a standalone component.



Scenario: Decrypt a GnuPG-encrypted file and display its content

The following scenario describes a three-component Job that decrypts a GnuPG-encrypted file and displays the content of the decrypted file on the Run console.

Dragging and linking the components

  1. Drop a tGPGDecrypt component, a tFileInputDelimited component, and a tLogRow component from the Palette to the design workspace.

  2. Connect the tGPGDecrypt component to the tFileInputDelimited component using a Trigger > OnSubjobOk link, and connect the tFileInputDelimited component to the tLogRow component using a Row > Main link.

Configuring the components

  1. Double-click the tGPGDecrypt to open its Component view and set its properties:

  2. In the Input encrypted file field, browse to the file to be decrypted.

  3. In the Output decrypted file field, enter the path to the decrypted file.


    If the file path contains accented characters, you will get an error message when running the Job. For more information on what to do when the accents are not supported, see the Talend Installation Guide.

  4. In the GPG binary path field, browse to the GPG command file.

  5. In the Passphrase field, enter the passphrase used when encrypting the input file.

  6. Double-click the tFileInputDelimited component to open its Component view and set its properties:

  7. In the File name/Stream field, define the path to the decrypted file, which is the output path you have defined in the tGPGDecrypt component.

  8. In the Header, Footer and Limit fields, define respectively the number of rows to be skipped in the beginning of the file, at the end of the file and the number of rows to be processed.

  9. Use a Built-In schema. This means that it is available for this Job only.

  10. Click Edit schema and edit the schema for the component. Click twice the [+] button to add two columns that you will call idState and labelState.

  11. Click OK to validate your changes and close the editor.

  12. Double-click the tLogRow component and set its properties:

  13. Use a Built-In schema for this scenario.

  14. In the Mode area, define the console display mode according to your preference. In this scenario, select Table (print values in cells of a table).

Saving and executing the Job

  1. Press Ctrl+S to save your Job

  2. Press F6 or click Run from the Run tab to run it.

The specified file is decrypted and the defined number of rows of the decrypted file are printed on the Run console.