@kikiutils/node
Version:
A modular utility library for Node.js offering secure hashing, flexible logging, datetime manipulation, and more.
17 lines • 863 B
TypeScript
/**
* This file provides a set of functions for creating SHA-3 hash digests using different bit lengths (224, 256, 384, 512).
* These functions use the [@noble/hashes](https://github.com/paulmillr/noble-hashes) library to generate the hashes.
* Can be used in the browser, mainly for Nuxt/Vue and other frameworks compiled and executed in the browser.
*
* @example
* ```typescript
* import { sha3256 } from '@kikiutils/node/hash';
*
* console.log(sha3256('test')); // 36f028580bb02cc8272a9a020f4200e346e276ae664e45ee80745574e2f5ab80
* ```
*/
export declare const sha3224: (data: string | Uint8Array) => string;
export declare const sha3256: (data: string | Uint8Array) => string;
export declare const sha3384: (data: string | Uint8Array) => string;
export declare const sha3512: (data: string | Uint8Array) => string;
//# sourceMappingURL=hash.d.ts.map