Files
matrix-quotes-bot/node_modules/matrix-js-sdk/lib/digest.d.ts
unfunny dfe4cc537f init
2026-09-13 00:29:11 -04:00

10 lines
497 B
TypeScript

/**
* Computes a SHA-256 hash of a string (after utf-8 encoding) and returns it as an ArrayBuffer.
*
* @param plaintext The string to hash
* @returns An Uint8Array containing the SHA-256 hash of the input string
* @throws If the subtle crypto API is not available, for example if the code is running
* in a web page with an insecure context (eg. served over plain HTTP).
*/
export declare function sha256(plaintext: string): Promise<Uint8Array>;
//# sourceMappingURL=digest.d.ts.map