core.encryptsha256
Home > @medplum/core > encryptSHA256
encryptSHA256() function
Encrypts a string with SHA256 encryption.
Signature:
export declare function encryptSHA256(str: string): Promise<ArrayBuffer>;
Parameters
Parameter | Type | Description |
---|---|---|
str | string | The unencrypted input string. |
Returns:
Promise<ArrayBuffer>
The encrypted value in an ArrayBuffer.