sha256

Hash the UTF-8 encoding of a string with Web Crypto SHA-256 and return lowercase hexadecimal.

import { sha256 } from '@threadplane/telemetry';

Declaration · overload 1

export declare function sha256(input: string): Promise<string>;

Parameters

input · required
string

Returns

Promise<string>