hmac_sha1
Generates an SHA-1 hash from a string using HMAC (Hash-based Message Authentication Code).
The helper accepts the secret key for the message as an input parameter.
Parameters
str{String}: The input string. This parameter is required.secret{String}: The secret key. This parameter is required. If not provided, an empty string is returned.returns{String}: The resulting HMAC-SHA1 hash.
Usage
{{ hmac_sha1 str secret }}
Example
{{ hmac_sha1 'hello!' 'sk' }}
Was this article helpful to you?