Skip to main content
Module

std/node/crypto.ts>Hash#digest

Deno standard library
Go to Latest
method Hash.prototype.digest
Re-export
import { Hash } from "https://deno.land/std@0.145.0/node/crypto.ts";

Calculates the digest of all of the data.

If encoding is provided a string will be returned; otherwise a Buffer is returned.

Supported encoding is currently 'hex', 'binary', 'base64'.

Parameters

optional
encoding: string

Returns

Buffer | string