UNPKG

@nfen/webcrypto-ts

Version:
23 lines 557 B
/** * Code related to SHA_512 * @module */ import { Sha512ArrayBuffer } from "./shared.js"; /** * Get the digest of the buffer * @example * ```ts * const buffer = new TextEncoder().encode("a file"); * const digest = SHA_512.digest(buffer); * ``` */ export declare const digest: (data: BufferSource) => Promise<Sha512ArrayBuffer>; /** * Get the hex string of the digest * @example * ```ts * const hash = SHA_512.hexify(digest); * ``` */ export declare const hexify: (digest: Sha512ArrayBuffer) => string; //# sourceMappingURL=sha_512.d.ts.map