Skip to content

modern-pdf-lib


modern-pdf-lib / sha256

Function: sha256()

sha256(data): Promise<Uint8Array<ArrayBufferLike>>

Defined in: src/crypto/sha256.ts:51

Compute the SHA-256 hash of the given data.

Parameters

data

Uint8Array

Input bytes.

Returns

Promise<Uint8Array<ArrayBufferLike>>

A 32-byte Uint8Array containing the SHA-256 digest.

Released under the MIT License.