# Setting up the tPGPEncrypt\_1 component

The tPGPEncrypt\_1 component encrypts the customers.csv using the public key file pubk.asc.

## Procedure

1. Double-click tPGPEncrypt\_1 to open its Basic settings view.
2. Select the Use public key file option and type in the path to the public key file ("D:\cert\pubk.asc" in this example) in the Public key file path field.
3. Select Encrypt from the Action drop-down list.
4. Type in the path to the customers.csv file (that is, "D:/cert/customers.csv") in the Source file field.
5. Type in the path to the encrypted file ("D:/cert/customers\_en.csv" in this example) in the Target file field.

   Information noteNote: Make sure that the file specified in this field does not exist in the folder.
6. Leave the other options as they are.

   ![](https://help.qlik.com/talend/en-US/components/8.0/Resources/images/use-case-pgp-2.png)