From d101fb7f77822aac2a3d42ca1529028405cfad0d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 9 Sep 2022 14:08:20 +0200 Subject: refactor ui layout --- client-web/source/protocol/crypto.ts | 2 ++ 1 file changed, 2 insertions(+) (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 742f22c..fb34e8d 100644 --- a/client-web/source/protocol/crypto.ts +++ b/client-web/source/protocol/crypto.ts @@ -3,6 +3,8 @@ import { log } from "../logger.ts"; //! I am not a crypto expert at all! Please read carefully and report any issues to me. export async function crypto_seeded_key(seed: string): Promise { + if (seed.length < 8) log({ scope: "crypto", warn: true }, "Room name is very short. e2ee is insecure!") + log("crypto", "importing seed…") const seed_key = await window.crypto.subtle.importKey( "raw", -- cgit v1.2.3-70-g09d2