UNPKG

hono

Version:

Web framework built on Web Standards

15 lines (14 loc) 502 B
/** * @module * Crypto utility. */ type Algorithm = { name: string; alias: string; }; type Data = string | boolean | number | object | ArrayBufferView | ArrayBuffer | ReadableStream; export declare const sha256: (data: Data) => Promise<string | null>; export declare const sha1: (data: Data) => Promise<string | null>; export declare const md5: (data: Data) => Promise<string | null>; export declare const createHash: (data: Data, algorithm: Algorithm) => Promise<string | null>; export {};