Skip to content

Encrypt column

Description

The Encrypt Column activity secures sensitive data by encrypting the values of one or more specified columns.
It supports both one-way hashing (e.g., SHA algorithms) for irreversible encryption and two-way encryption (e.g., symmetric encryption using passwords) for reversible use cases.

Use case: Protect user credentials or personally identifiable information (PII) before storing or sharing datasets.


Input

TypeDescription
DataA tabular dataset as input

Output

TypeDescription
DataReturns the dataset with encrypted columns

Configuration Fields

Field NameRequiredDescription
Encryption typeYesChoose between one-way (irreversible hash) or two-way (reversible using password).
AlgorithmConditionalSelect algorithm for one-way encryption (e.g., SHA-256, SHA-1). Shown only for one-way.
Column namesYesOne or more columns whose values will be encrypted.
PasswordConditionalUsed for two-way encryption to encode and decode the values.

Sample Input

h1h2h3
data1value1info1
data2value2info2
data3value3info3

Sample Configuration

FieldValue
Encryption typeTwo-way
Column namesh1, h2
PasswordMySecret!

Sample Output (Two-Way Encryption)

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 Output (One-Way Encryption using SHA-1)

h1h2h3
6d97a6b8b9899b0a59b6e85b993b22a8ac94608e59b4d1a83149cdad8379a35de8f4a4a853a4cc8info1
f62b083e8f63d69a91e16f0db11b19589f2fcf1548f56b831617f4f8df5e705b2b76e8d8c4b03b9info2
f78c6d99b6e04d0c5397423fb4cd58f79f228d22d72c30ecedc493139de2bc57290ed40f763adainfo3

Use one-way encryption for passwords and sensitive values you don’t need to retrieve.
Use two-way encryption when data must be decrypted later for analysis or export.