Encrypt Block

The Encrypt block encrypts data using hash algorithms during the dataflow execution. It creates a unique, fixed-length value (hash) from input data. The hash algorithms supported are SHA256, SHA1, SHA512, MD5, MD5-SHA1, AES128, AES-256-CBC, AES256, and RSA.

Example scenario

Requirement

A gas company offers a mobile application that allows customers to find the nearest gas station, check available facilities, view fueling details, track transactions, and access receipts. The company's loyalty program is managed by Capillary.

For secure transaction processing, all transactions between Capillary and the gas company must go through a financial services provider. Before any transaction can occur, an account must be created with the provider.

To ensure data security, Capillary must encrypt customer details before transmitting them securely to the financial services provider.

Solution

To encode customer details, create a dataflow with the Encrypt block. This block generates a hash-encoded data format, which the system uses to create an account with the financial services provider.

Refer to this example dataflow to understand how it is configured for a use case. Make sure you have access to DocDemo org (100737) and access to Neo.

Configuring the Encrypt Block

To configure the Encrypt block,

  1. From the dataflow canvas, click on the node and select the Encrypt block.
  2. In the Block Name, enter the name of the block.
    Note: Block names cannot contain spaces or special characters, except for underscores (_). Use camelCase or snake_case formatting.
  3. In the Hash Algorithm, choose the hash algorithm to compute the HMAC. It is a mandatory field. Supported values are SHA256, SHA1, SHA512, MD5, MD5-SHA1
  4. In the Payload field, enter the content to be encoded. It is a mandatory field.
  5. Configure the Input execution logic, Cachable feature and define the execution path as per the requirement.
  6. Click Done.
Configuring the Encrypt block

Configuring the Encrypt block