# Hash160 - スクリプトおよびチャート関数

Hash160() は、複合入力式の 160 ビット ハッシュを返します。結果は、27 文字の文字列になります。 ハッシュ値は、顧客名、社会保障番号、口座番号などの個人識別情報 (PII) を隠すのに役立ちます。

構文:

Hash160(expr{, expression})

戻り値データ型： 文字列

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

#### 例: チャートの数式

| 例 | 結果 |
| --- | --- |
| Hash160 ( 'abc', 'xyz', '123' ) | 「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. | 「G7\*=6GKPJ(Z+)^KM?&lt;$'AI.)?U$」を返します。 |

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

#### 例: ロード スクリプト

```
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 ]; 
```

結果

| 地域 | 年 | 月 | 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 |