Skip to main content
Go to Latest
function hashValue
import { hashValue } from "https://deno.land/x/simple_utility@v1.3.6/mod.universal.ts";

Derive SHA2 hash value from binary.

Examples

Example 1

const bin = await Deno.readFile("./file");
const hash = await hashValue(256, bin);

Parameters

bit: 256 | 384 | 512
data: Uint8Array

Returns

Promise<Uint8Array>