taisukef / SHA256-WebGPU

Implementation of sha256 in WGSL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SHA-256 WebGPU

Implementation of sha-256 hash using WGSL compute shader.

usage

import { sha256 } from "https://taisukef.github.io/SHA256-WebGPU/sha256.js";

const input = "abc";
const result = await sha256(input);
console.log(result); // ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

About

Implementation of sha256 in WGSL


Languages

Language:JavaScript 84.2%Language:HTML 15.8%