Hash160 - script and chart function
Hash160() returns a 160-bit hash of the combined input expression values. The result is a 27-character string. Hash160() returns a 160-bit hash value of the combined input expression values. The result is a 27-character string. Hash values are useful for masking personal identifiable information (PII), such as customer names, social security numbers, or account numbers.
Syntax:
Hash160(expr{, expression})
Return data type: string
Example | Result |
---|---|
Hash160 ( 'abc', 'xyz', '123' ) | Returns 'MA&5]6+3=:>;>G%S<U*S2I:`=X*'. |
Hash160 ( Region, Year, Month ) Note: Region, Year, and Month are table fields. |
Returns 'G7*=6GKPJ(Z+)^KM?<$'AI.)?U$'. |
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 ];
Result
Region | Year | Month | Hash160 |
---|---|---|---|
abc | xyz | 123 | MA&5]6+3=:>;>G%S<U*S2I:`=X* |
EU | 2022 | 01 | B40^K&[T@!;VB'XR]<5=//_F853 |
UK | 2022 | 02 | O5T;+1?[B&"F&1//MA[MN!T"FWZ |
US | 2022 | 02 | C6@#]4#_G-(]J7EQY#KRW`@KF+W |
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 ];
Result
Region | Year | Month | Hash160 |
---|---|---|---|
abc | xyz | 123 | MA&5]6+3=:>;>G%S<U*S2I:`=X* |
EU | 2022 | 01 | B40^K&[T@!;VB'XR]<5=//_F853 |
UK | 2022 | 02 | O5T;+1?[B&"F&1//MA[MN!T"FWZ |
US | 2022 | 02 | C6@#]4#_G-(]J7EQY#KRW`@KF+W |