import { sha256 } from "https://taisukef.github.io/SHA256-WebGPU/sha256.js";
const input = "abc";
const result = await sha256(input);
console.log(result); // ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Implementation of sha256 in WGSL
import { sha256 } from "https://taisukef.github.io/SHA256-WebGPU/sha256.js";
const input = "abc";
const result = await sha256(input);
console.log(result); // ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Implementation of sha256 in WGSL