diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-09 14:08:20 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-09 14:08:20 +0200 |
commit | d101fb7f77822aac2a3d42ca1529028405cfad0d (patch) | |
tree | a1603a025a06ef1efa30828d4a669684095ef50b /client-web/source/protocol/crypto.ts | |
parent | e8ba73eaef223513b143323df6cc7f495838a6ab (diff) | |
download | keks-meet-d101fb7f77822aac2a3d42ca1529028405cfad0d.tar keks-meet-d101fb7f77822aac2a3d42ca1529028405cfad0d.tar.bz2 keks-meet-d101fb7f77822aac2a3d42ca1529028405cfad0d.tar.zst |
refactor ui layout
Diffstat (limited to 'client-web/source/protocol/crypto.ts')
-rw-r--r-- | client-web/source/protocol/crypto.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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<CryptoKey> { + 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", |