Skip to content

modern-pdf-lib


modern-pdf-lib / sha512

Function: sha512()

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

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

Compute the SHA-512 hash of the given data.

Parameters

data

Uint8Array

Input bytes.

Returns

Promise<Uint8Array<ArrayBufferLike>>

A 64-byte Uint8Array containing the SHA-512 digest.

Released under the MIT License.