keyed_hash

The keyed_hash filter will convert its arguments into a keyed hash value using the HMAC method. The first argument is the message to be hashed, and the second argument is the shared secret key used for generating the HMAC variant of the message digest.

{% set hash =  "message"|keyed_hash("secret") %}