import { hash } from "https://deno.land/x/deno_cache@0.4.1/util.ts";
Generates a sha256 hex hash for a given input string. This mirrors the
behavior of Deno CLI's cli::checksum::gen
.
Would love to use the Crypto API here, but it only works async and we need to be able to generate the hashes sync to be able to keep the cache able to look up files synchronously.