hash

Hash selected columns in a data extract.

This guide explains how to configure the hash instruction. To learn about another instruction, go back to the Available custom script instructions overview.

Introduction

Use the hash instruction to hash selected columns in a data extract. The hashed data is added to a new column in the data extract.

The three available hashing methods are:

sha224

Hashes data using a 112-bit signature.

sha256

Hashes data using a 256-bit signature.

md5

Hashes data using a 128-bit signature.

Creating a custom script transformation using the hash instruction

To create and configure a custom script using the hash instruction, follow these steps:

  1. Create a custom script transformation.

  2. In the Instructions step, select the hash instruction.

  3. To configure the custom script instruction, fill in the following fields. Required fields are marked with an asterisk (*).

Target Field Name

Specify the name of the new column to add to the data extract.

Source Fields

Enter the names of the columns to hash. Click to add a new column to hash.

Algorithm

Select the hashing method with which to hash the data in the selected columns.

Subtable

Enter the name for a subtable that you want to use within this custom script.

A subtable is a temporary table that only exists for this custom script. You can apply additional instructions within the same custom script to the subtable. However, the subtable cannot be used in any other custom scripts.

If a subtable does not exist for the current custom script, the transformation is applied to the data extract, and the enriched data is output into the subtable. If the subtable already exists for the custom script, the subtable is used as the input for the transformation and optionally as the output.