Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deco/utils/encoding.ts>stringToHexSha256

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
variable stringToHexSha256
import { stringToHexSha256 } from "https://deno.land/x/deco@1.59.1/utils/encoding.ts";

Takes an arbitrary string and converts to its sha256 hex representation.

type

(str: string) => Promise<string>