Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

⚔️ Hypermodern Zero-Legacy Deno/React Framework
Go to Latest
function hash
import { hash } from "https://deno.land/x/ultra@v2.0.0-alpha.12/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