- 1 Minute to read
- Print
- DarkLight
ecx:sha256hex
- 1 Minute to read
- Print
- DarkLight
The function ecx:sha256hex hashes a value with the Secure Hash Algorithm SHA-256. For more information, see http://en.wikipedia.org/wiki/SHA-2.
The binary output is produced as a hexadecimal string. For more information, see http://en.wikipedia.org/wiki/Hexadecimal.
Example
You set up a function that hashes the email address. This function protects personal data, which is exported from the system and shared with third parties for data analysis.
The function is constructed as follows:
${ecx:sha256hex(user['email'])}
Structure
ecx:sha256hex(string)
Parameters
Parameter | Description |
---|---|
string | Specifies the target value. Usually references an attribute or value that is stored in a related data set. Any value to be hashed can be referenced. |