Skip to content

Encrypt column

Description

This activity reads the data and encrypts the columns specified by the user in the user-defined modes. The encryption can be either one-way or two-way, depending on the configuration.


Input

Data Only

Output

Transformed Data


Configuration Fields

  • Encryption type Specifies the type of encryption, either one-way or two-way.
  • Algorithm Defines the algorithm for one-way encryption (enabled only when encryption type is one-way).
  • Column names Specifies the names of the columns to encrypt.
  • Password The encryption key for symmetric encryption (enabled only when encryption type is two-way).

Sample Input 1

h1h2h3
data1value1info1
data2value2info2
data3value3info3

Sample Configuration

alt text


Sample Output 2 (as per the configuration)

h1h2h3
3b9d9b8d-6d93-4648-b33a-2c6f773789a79b1b5c9a-bc5e-4a99-b38d-d9c34cf7cfd6info1
33d3bff6-e469-46f7-9d7c-4bc12d5d59a17b77f40b-9375-479d-bdf7-dcc95f07b99cinfo2
b3c3e828-2cb7-4de9-bf1c-62aef6fffa976729f1d8-3781-4315-8fe1-8b042708f25einfo3

Sample Input 2

h1h2h3
data1value1info1
data2value2info2
data3value3info3

Sample Output 2 (Encrypted using SHA)(one-way)

h1h2h3
6d97a6b8b9899b0a59b6e85b993b22a8ac94608e59b4d1a83149cdad8379a35de8f4a4a853a4cc8info1
f62b083e8f63d69a91e16f0db11b19589f2fcf1548f56b831617f4f8df5e705b2b76e8d8c4b03b9info2
f78c6d99b6e04d0c5397423fb4cd58f79f228d22d72c30ecedc493139de2bc57290ed40f763adainfo3