File Processor Connector > File Processor Operations > Encrypting or Decrypting Files
  

Encrypting or Decrypting Files

You can use File Processor Connector to encrypt and decrypt the local files. Use the FileEncrypt object to encrypt or encrypt and sign the files. Use the FileDecrypt object to decrypt or decrypt and verify the local files. File Processor Connector supports the .pgp, .gpg, and .pbe formats for encrypting and decrypting the local files.

Encrypting or Decrypting Files Example

You are a system administrator and want to encrypt files present in the local file system.
Perform the following steps to create a synchronization task to encrypt files present in local file system:
    1In Data Integration, click New > Tasks.
    2Select Synchronization Tasks, and click Create.
    The Definition tab appears.
    3Configure the following fields on the Definition tab:
    Field
    Description
    Task Name
    Name of the synchronization task. For example: File_Process_Encryption
    Description
    Description of the synchronization task. Maximum length is 255 characters.
    Task Operation
    Select Insert.
    4Click Next.
    The Source tab appears.
    5Configure the following fields on the Source tab:
    Field
    Description
    Connection
    Select the connection you created. For example: File_Process_Encryption_GPG_perf
    Source Type
    Select Single.
    Source Object
    Select FileEncrypt.
    6Click Next.
    The Target tab appears.
    7Configure the following fields on the Target tab:
    Field
    Description
    Connection
    Select the flat file connection.
    Target Object
    Click Create Target.
    8Click Next.
    The Data Filters tab appears.
    9Select the filter object, filter field, and filter operator to create a data filter on the Data Filters page.
    The following image shows the Data Filters page:
    If you use signed encryption, specify the public key path of the receiver to encrypt the file and the private key path of the sender to sign the file. Specify the public key path and the private key path for the FileEncrypt object on the Data Filters page. The following image shows the Data Filters page:
    10Click Next.
    The Field Mapping tab appears.
    11Click Automatch on the Field Mapping tab to map source fields to target fields accordingly.
    12Click Validate Mapping to validate the mapping.
    13Click Save and then Finish.
    14From the Explore page, select the task, and click Actions > Run.
    In Monitor, you can monitor the status of the logs after you run the task.