> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-center-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-center-1/data-center/data-preparation/data-preparation-workspace/transforms/anonymization.md).

# Anonymization

Anonymization is a type of information sanitization whose intent is privacy protection. It is a data processing technique that removes or modifies personally identifiable information.

The below-mentioned transforms are available under the Dates category:

### **​**![](https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FA6EB8P1NbyDaDUxT8lf7%2Fimage.png?alt=media\&token=b4944062-3825-4377-863a-39b6e2a494aa)**​** <a href="#undefined" id="undefined"></a>

## **Data Hashing** <a href="#data-hashing" id="data-hashing"></a>

Data Hashing is a technique of using an algorithm to map data of any size to a fixed length. Every hash value is unique.&#x20;

The Data Hashing is a data transformation technique used to convert raw data into a fixed-length representation in the form of a hash value. This transformation is often employed as part of the data preprocessing stage before using the data for various purposes such as analysis, machine learning, or storage. The main objective of data hashing as a data transform is to provide a more efficient and secure way to handle and process sensitive or large datasets.

{% hint style="info" %}
*<mark style="color:green;">Please Note</mark>:* A suitable hashing algorithm is chosen based on the specific requirements and security considerations as ***Hash Options***. *The supported Hash options are **Hash**, **Sha-1**, **Sha-2** and **MD-5**.*

![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FD8P5pWvtGj8LCPkxXjzA%2Fimage.png?alt=media\&token=32055f77-f3b6-470f-b78f-9957e9ea0a5e)
{% endhint %}

* Navigate to the dataset within the Data Preparation framework, and select a column.
* Open the **Transforms** tab.&#x20;
* Select the ***Data Hashing*** transform from the ***ANONYMIZATION*** category.
* Select a column from data grid for transformation.
* Select the required ***Hash Option.*** The supported Data Hashing options are Hash, Sha-1, Sha-2, MD-5.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2Fxgm0IUh9OqDJWBZWg6qh%2Fimage.png?alt=media&amp;token=47241bd0-4652-4eac-ae66-0c6250c1be4d" alt=""><figcaption></figcaption></figure>

* The selected column gets converted based on the hashing option (In the below-given case, the selected Data Hashing option is Hash).

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FFZ5W3DXEHBWHzfCCxdq7%2Fimage.png?alt=media&amp;token=c1969f11-d907-4024-b4e8-e1edf3249cce" alt=""><figcaption></figcaption></figure>

<details>

<summary>Data Hashing with Sha1 Hash Option</summary>

* Select a column from the given dataset within the ***Data Preparation*** framework.
* Open the ***Transforms*** tab.&#x20;
* Select the ***Data Hashing*** transform from the ***ANONYMIZATION*** category.
* Select a column from data grid for transformation.
* Select ***Sha1*** as Hash Option.&#x20;
* Click the ***Submit*** option.

&#x20;      ![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FVyyXhusnIFKUOKyoJAzI%2Fimage.png?alt=media\&token=f051eeb6-ef19-47b5-984e-727a621d2a94)

* The selected column gets converted based on the hashing option.

&#x20;      ![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FPrVGvabYOYBE93g9wH8l%2Fimage.png?alt=media\&token=7f168053-7742-49a8-b67d-04e3d830e114)

</details>

<details>

<summary>Data Hashing with Sha2 Hash Option</summary>

* Select a column from the given dataset within the ***Data Preparation*** framework.
* Open the ***Transforms*** tab.&#x20;
* Select the ***Data Hashing*** transform from the ***ANONYMIZATION*** category.
* Select a column from data grid for transformation.
* Select ***Sha2*** as Hash Option.&#x20;
* Select a Hash Value from the drop-down (The supported values are 256, 384, and 512).&#x20;
* Click the ***Submit*** option.

&#x20;      ![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FWxaKAwKpPE0DuFLt33En%2Fimage.png?alt=media\&token=b22fa764-ab9c-477a-a10d-4c6ff67e8917)

* The selected column gets converted based on the hashing option.

&#x20;      ![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FsbT4bBN1GexTXAuTNWGY%2Fimage.png?alt=media\&token=ea58e59a-954a-4ae2-8631-59cc4fb5663f)

</details>

<details>

<summary>Data Hashing with MD5 Hash Option</summary>

* Select a column from the given dataset within the ***Data Preparation*** framework.
* Open the ***Transforms*** tab.&#x20;
* Select the ***Data Hashing*** transform from the ***ANONYMIZATION*** category.
* Select a column from data grid for transformation.
* Select ***MD5*** as Hash Option.&#x20;
* Click the ***Submit*** option.

&#x20;     ![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FPdVNBRVVkTM3cHgfAvmA%2Fimage.png?alt=media\&token=53ea149b-5d0e-489f-8d8f-b70abe518e4f)

* The selected column gets converted based on the hashing option.

&#x20;      ![](https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FJt3ttyg9zunvhIh92UYQ%2Fimage.png?alt=media\&token=3049de37-7544-4b1b-a484-2ff987bffff9)

</details>

## **Data Masking** <a href="#data-masking" id="data-masking"></a>

Data masking transform is the process of hiding original data with modified content. It is a method of creating a structurally similar but inauthentic version of an actual **data.**

* Select a column within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Data Masking*** transform from the ***ANONYMIZATION*** category.
* Provide the ***Start Index*** and ***End Index*** to mask the selected data.
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F4a3AfQe4iAz5VsdYOaeM%2Fimage.png?alt=media&amp;token=a2439299-78da-4d0d-8aed-3a12fa4cd4e8" alt=""><figcaption></figcaption></figure>

* The below-given image displays how the ***Data Masking*** transform (when applied to the selected dataset) converts the selected data:​

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FzfR7ZhonvSGEI4473EsB%2Fimage.png?alt=media&amp;token=8fa6251d-75e2-4b20-8d4c-163f2637e3af" alt=""><figcaption></figcaption></figure>

## **Data Variance** <a href="#data-variance" id="data-variance"></a>

**The Data Variance transform allows the users to apply**

* Select the ***Data Variance*** transform from the ***Transforms*** tab.
* Select a column from data grid for transformation.
* Select the required Value Type-***Numeric/Date***.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FQPtcQsUA4bSsbFwOELsj%2Fimage.png?alt=media&amp;token=269b375a-11e5-443f-91b9-ffa90779a387" alt=""><figcaption></figcaption></figure>

* Configure the adequate information based on the Value Type.
* Click the ***Submit*** option.​
* The data of the selected column gets modified based on the set.

### Applying the Data Variance transform to a Number Column

* Select a numeric column within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Data Variance*** transform from the ***ANONYMIZATION*** category.
* Select ***Numeric*** as the ***Value Type***.
* Configure the following details:
  * Select an Operator using the drop-down option.
  * Set percentage.&#x20;
* Click the ***Submit*** option.​

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2F8hKZGws0EwqZ60pLycFy%2Fimage.png?alt=media&amp;token=c7711ca2-c2a1-4f56-9d84-5d19d9ec5aed" alt=""><figcaption><p><em><strong>Applying the Data Variance Transform to a Numeric column</strong></em></p></figcaption></figure>

* The data of the selected column gets transformed based on the set numeric values.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FQ0ouKA5XSiRjvt29Mz5d%2Fimage.png?alt=media&amp;token=2a88a677-d1a4-43f3-9dbd-e99ab83520da" alt=""><figcaption></figcaption></figure>

### Applying the Data Variance transform to a Date Column

* Select a column containing Date values from the given dataset within the Data Preparation framework.
* Open the ***Transforms*** tab.
* Select the ***Data Variance*** transform from the ***ANONYMIZATION*** category.
* Select ***Date*** as the ***Value Type***.
* Provide the following details:
  * Start Date
  * End Date
* Click the ***Submit*** option.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FhQX2QeM3UkG9WqZDH7vZ%2Fimage.png?alt=media&amp;token=e1b9a22f-b861-4fe9-9296-76b903b791b8" alt=""><figcaption><p><em><strong>Applying the Data Variance Transform to a Date column</strong></em></p></figcaption></figure>

* The selected Date column will display random dates from the selected date range.

<figure><img src="https://1292667781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTXhIkVsF2MUsgjZftfJq%2Fuploads%2FSpjUZ9NEhzTRtsZCkKQr%2Fimage.png?alt=media&amp;token=352c5e18-bd29-4ec3-9a59-36049c2cb893" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note</mark>: The **Data Variance** transform also provides space to add description while configuring the transformation information.*
{% endhint %}
