hash modifier
1Presentation
This Smarty modifier generates the digital fingerprint (hash value) of a piece of data.
2Usage
This modifier takes one optional parameter:
- algo: (string) Hash algorithm (md5, sha512, etc.). See the list of supported algorithms. The default algorithm is sha256.
Here is an example:
<img src="https://gravatar.com/avatar/{$currentUser.email|hash:'sha256'}?s=36&d=mp">