Skip to main content

core.encryptsha256

Home > @medplum/core > encryptSHA256

encryptSHA256() function

Encrypts a string with SHA256 encryption.

Signature:

export declare function encryptSHA256(str: string): Promise<ArrayBuffer>;

Parameters

ParameterTypeDescription
strstringThe unencrypted input string.

Returns:

Promise<ArrayBuffer>

The encrypted value in an ArrayBuffer.