From 6f644481f397af070e2b91b69846e375caafdbda Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 7 Sep 2023 00:01:27 +0200 Subject: prepare for room watches --- client-web/source/protocol/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source/protocol/crypto.ts') diff --git a/client-web/source/protocol/crypto.ts b/client-web/source/protocol/crypto.ts index c5de90f..6bd5407 100644 --- a/client-web/source/protocol/crypto.ts +++ b/client-web/source/protocol/crypto.ts @@ -31,7 +31,7 @@ export async function crypto_seeded_key(seed: string): Promise { return key } -export async function crypt_hash(input: string): Promise { +export async function crypto_hash(input: string): Promise { const buf = new TextEncoder().encode("also-a-very-good-salt" + input) const h = await window.crypto.subtle.digest({ name: "SHA-512" }, buf) const hex = buf_to_hex(new Uint8Array(h)) -- cgit v1.2.3-70-g09d2