Module

x/ultra/lib/utils/hash.ts>hash

⚔️ Hypermodern Zero-Legacy Deno/React Framework
Go to Latest
function hash
import { hash } from "https://dotland.deno.dev/x/ultra@v2.0.0-alpha.9/lib/utils/hash.ts";

Creates a SHA-256 hash of a supplied length of the passed value

Parameters

value: string | Uint8Array

The string to create a hash of, this is usually the file content.

optional
length = [UNSUPPORTED]

The length of the resulting hash to return