Skip to main content
The Deno 2 Release Candidate is here
Learn more
method HashUtil.prototype.generateHashForData
import { HashUtil } from "https://deno.land/x/sptaki@1.2.0/utils/HashUtil.d.ts";

Create a hash for the data parameter

Parameters

algorithm: string

algorithm to use to hash

data: crypto.BinaryLike

data to be hashed

Returns

string

hash value