@mackenly/zaraz-tools
Version:
Unofficial 3rd party toolkit for Zaraz
11 lines (10 loc) • 370 B
TypeScript
/**
* sha256
* Generates a SHA-256 hash of the given data
* @param data The data to hash
* @param lowercase Whether to lowercase the input data before hashing (default: false)
* @returns: Promise of the hashed string
* @throws: Error if the hashing fails
* @since 2024-09-19
*/
export declare function sha256(data: string, lowercase?: boolean): Promise<string>;