Overview
Cordial supports multiple methods to encode text strings with hashing algorithms. This is useful when passing sensitive information in URLs.
Example
-
{$hashed_email = $contact.channels.email.address|hash:"sha256"} -
{$hashed_email} -
8bfa718c77ad829d058478f55d20015f6be4b36e57bcd09ff146272464f6f6d6
The example above shows how the string $hashed_email is encoded using the "sha256" hashing algorithm.
Test the Smarty output in your Cordial account by pasting the code above into the edit message field of the HTML Editor and clicking the Preview button.
Supported hashing algorithms
The following hashing algorithms are supported in Cordial.
md2md4md5sha1sha224sha256sha384sha512ripemd128ripemd160ripemd256ripemd320whirlpooltiger128,3tiger160,3tiger192,3tiger128,4tiger160,4tiger192,4snefrusnefru256gostadler32crc32crc32bfnv132fnv164joaathaval128,3haval160,3haval192,3haval224,3haval256,3haval128,4haval160,4haval192,4haval224,4haval256,4haval128,5haval160,5haval192,5haval224,5haval256,5
Comments
0 comments
Please sign in to leave a comment.