Skip to main content

crypto.sha256(dataToHash)

Performs a 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

Returns

Blob — the hashed data (32 bytes)

Description

This method brings to the device equivalent functionality to the agent’s http.hash.sha256(). It performs a SHA-256 hash on the input data.