Skip to main content

crypto.hmacsha256(dataToHash, key)

Performs an HMAC-SHA-256 hash function

Availability

Device (from impOS™ 36) + Agent

Parameters

Name Type Description
dataToHash String or blob The data to which the hash function will be applied
key String or blob The hash key

Returns

Blob — the hashed data (32 bytes)

Description

This method brings to the device equivalent functionality to the agent’s http.hash.hmacsha256(). It performs an HMAC-SHA256 hash using the input data and key.