Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qu.ai/llms.txt

Use this file to discover all available pages before exploring further.

function sha256(_data): string
Compute the cryptographic SHA2-256 hash of data.

Parameters

ParameterTypeDescription
_dataBytesLikeThe data to hash.

Returns

string The hash of the data.

Example

sha256('0x');

sha256('0x1337');

sha256(new Uint8Array([0x13, 0x37]));

Source

crypto/sha2.ts:38