From dfcacf7bbf26202fc2aaea0183134403b6409afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Wed, 4 Jan 2023 18:08:58 +0100 Subject: [PATCH] mostly works now, except for decrypting the file, but not getting any helpful error messages from SubtleCrypto to fix this --- src/App.svelte | 8 +++++ src/lib/DecryptButton.svelte | 29 ++++++++---------- src/lib/EncryptButton.svelte | 31 +++++++++---------- src/lib/cryptlib.ts | 59 ++++++++++++++++++++++-------------- src/lib/generalStore.ts | 7 ++++- 5 files changed, 78 insertions(+), 56 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 0bd94d6..2a7ce46 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -2,10 +2,18 @@ import EncryptButton from './lib/EncryptButton.svelte' import PasswordButton from './lib/PasswordButton.svelte'; import DecryptButton from './lib/DecryptButton.svelte'; + import { errorMessage } from './lib/generalStore'; + + let errorMessageContent + errorMessage.subscribe( value => { + errorMessageContent = value; + });

Encrypt and decrypt files

+ {errorMessageContent} +
diff --git a/src/lib/DecryptButton.svelte b/src/lib/DecryptButton.svelte index 497642e..73d7775 100644 --- a/src/lib/DecryptButton.svelte +++ b/src/lib/DecryptButton.svelte @@ -1,7 +1,7 @@