# Hash160 - funzione dello script e del grafico

Hash160() restituisce un hash a 160 bit dei valori di espressione di input combinati. Il risultato è una stringa da 27 caratteri. Hash160() restituisce un valore hash a 160 bit dei valori di espressione di input combinati. Il risultato è una stringa da 27 caratteri. I valori hash sono utili per mascherare le informazioni personali identificabili (PII), come i nomi dei clienti, i numeri di previdenza sociale o i numeri di conto.

Sintassi:

Hash160(expr{, expression})

Tipo di dati restituiti: stringa

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

#### Esempio: espressioni del grafico

| Esempio | Risultato |
| --- | --- |
| Hash160 ( 'abc', 'xyz', '123' ) | Restituisce 'MA&5]6+3=:&gt;;&gt;G%S&lt;U\*S2I:`=X*'. |
| Hash160 ( Region, Year, Month )<br><br>Note: Region, Year, and Month are table fields. | Restituisce 'G7\*=6GKPJ(Z+)^KM?&lt;$'AI.)?U$'. |

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

#### Script di caricamento e risultati

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

Risultato

| Area geografica | Anno | Mese | Hash160 |
| --- | --- | --- | --- |
| abc | xyz | 123 | MA&5]6+3=:&gt;;&gt;G%S&lt;U\*S2I:`=X* |
| EU | 2022 | 01 | B40^K&[T@!;VB'XR]&lt;5=//\_F853 |
| UK | 2022 | 02 | O5T;+1?[B&"F&1//MA[MN!T"FWZ |
| US | 2022 | 02 | C6@#]4#\_G-(]J7EQY#KRW`@KF+W |

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

#### Esempio: script di caricamento

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

Risultato

| Area geografica | Anno | Mese | Hash160 |
| --- | --- | --- | --- |
| abc | xyz | 123 | MA&5]6+3=:&gt;;&gt;G%S&lt;U\*S2I:`=X* |
| EU | 2022 | 01 | B40^K&[T@!;VB'XR]&lt;5=//\_F853 |
| UK | 2022 | 02 | O5T;+1?[B&"F&1//MA[MN!T"FWZ |
| US | 2022 | 02 | C6@#]4#\_G-(]J7EQY#KRW`@KF+W |