In a Smarty templated theme I would like to implement MD5 within the template to get a unique hash based on a string and a salt. (Do not have access to the PHP calling the template, or this would be trivial). Smarty does not seem to have an MD5 function built into it. I thought I might be able to create a hash based on the length of the string and some other unique account information and by using Smarty’s Math function, but was hoping there might be a better way to do this that I’m overlooking. Anyone have any thoughts or ideas on this? Thank you!
Share
If you’re just using the stock md5 function, you can use it as a modifier.
From documentation:
Source v2
Source v3