# Hash128 - script- en diagramfunctie

Hash128() retourneert een 128-bits hash van de gecombineerde invoerwaarden van de uitdrukking. Het resultaat is een tekenreeks van 22 tekens.Hash128() retourneert een 128-bits hashwaarde van de gecombineerde invoerwaarden van de uitdrukking. Het resultaat is een tekenreeks van 22 tekens.Hashwaarden zijn handig voor het maskeren van persoonlijke identificeerbare informatie (PII), zoals klantnamen, burgerservicenummers of rekeningnummers.

Syntaxis:

Hash128(expr{, expression})

Retourgegevenstypen: tekenreeks

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Hash128.htm)

#### Voorbeeld: diagramuitdrukkingen

| Voorbeeld | Resultaat |
| --- | --- |
| Hash128 ( 'abc', 'xyz', '123' ) | Retourneert 'MA&5]6+3=:&gt;:&gt;G%S&lt;U\*S2+'. |
| Hash128 ( Region, Year, Month )<br><br>Note: Region, Year, and Month are table fields. | Retourneert 'G7\*=6GKPJ(Z+)^KM?&lt;$'A+'. |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Hash128.htm)

#### Load-script en resultaten

```
Hash_128:
Load *, 
Hash128(Region, Year, Month) as Hash128;
Load * inline [
Region, Year, Month
abc, xyz, 123
EU, 2022, 01
UK, 2022, 02
US, 2022, 02 ]; 
```

Resultaat

| Regio | Jaar | Maand | Hash128 |
| --- | --- | --- | --- |
| abc | xyz | 123 | MA&5]6+3=:&gt;;&gt;G%S&lt;U\*S2+ |
| EU | 2022 | 01 | B40^K&[T@!;VB'XR]&lt;5=/$ |
| UK | 2022 | 02 | O5T;+1?[B&"F&1//MA[MN! |
| US | 2022 | 02 | C6@#]4#\_G-(]J7EQY#KRW0 |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Hash128.htm)

#### Voorbeeld: load-script en resultaten

```
Hash_128:
Load *, 
Hash128(Region, Year, Month) as Hash128;
Load * inline [
Region, Year, Month
abc, xyz, 123
EU, 2022, 01
UK, 2022, 02
US, 2022, 02 ]; 
```

Resultaat

| Regio | Jaar | Maand | Hash128 |
| --- | --- | --- | --- |
| abc | xyz | 123 | MA&5]6+3=:&gt;;&gt;G%S&lt;U\*S2+ |
| EU | 2022 | 01 | B40^K&[T@!;VB'XR]&lt;5=/$ |
| UK | 2022 | 02 | O5T;+1?[B&"F&1//MA[MN! |
| US | 2022 | 02 | C6@#]4#\_G-(]J7EQY#KRW0 |