Performs a SHA-256 hash function
Agent
Name | Type | Description |
---|---|---|
dataToHash | String or blob |
The data to which the hash function will be applied
|
Blob — the hashed data (32 bytes)
This method performs a SHA-256 hash on the input data. Because the returned data is a blob, it is not uncommon to Base64 encode it.
A simple example of SHA-256 hashing.