tangled
alpha
login
or
join now
emarref.net
/
ticks
0
fork
atom
A daily game
0
fork
atom
overview
issues
pulls
pipelines
Use 512 instead of 2256 to support larger board
Malcolm Fell
4 months ago
6cf84e81
60b58b1e
+1
-1
1 changed file
expand all
collapse all
unified
split
src
lib
hash.ts
+1
-1
src/lib/hash.ts
···
2
2
3
3
export async function sha256(input: string) {
4
4
const digest = await crypto.subtle.digest(
5
5
-
{ name: "SHA-256" },
5
5
+
{ name: "SHA-512" },
6
6
encoder.encode(input),
7
7
);
8
8
return new Uint8Array(digest);