- 1 Minute to read
- Print
- DarkLight
ecx:md5base64
- 1 Minute to read
- Print
- DarkLight
The function ecx:md5base64 hashes a value with the message-digest algorithm 5. For more information, see http://en.wikipedia.org/wiki/MD5.
The binary output is produced as a string that is encoded in Base64. For more information, see http://en.wikipedia.org/wiki/Base64.
Strings that are encoded in Base64 cannot be used directly in link addresses. Either apply URL encoding to the resulting string or use the function ecx:md5hex instead. For more information, see ecx:md5hex
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:md5base64(user['email'])}
Structure
ecx:md5base64(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. |