computeSha256
Computes the SHA-256 of the given bytes.
Import:
import { computeSha256 } from '@mnaoumov/obsidian-lib/release-asset';Signature:
function computeSha256(data: ArrayBuffer): Promise<string>Parameters:
| Parameter | Type | Description |
|---|---|---|
data |
ArrayBuffer | The bytes. |
Returns: Promise<string> — The SHA-256 as 64 lowercase hexadecimal digits.