From fb05e214f15a6b7cfe05c2534fc61843075e5c60 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 17 Mar 2023 20:31:06 +0100 Subject: [PATCH] Breaking: Replace deprecated / archived crypto library - Remove `gibberish-aes` - Switch to Web Crypto API for encryption - Replace old `md5` key-derivation with modern PBKDF2 - Follow OWASP recommendation for number of iterations in PBKDF2 This is marked as a breaking change as it fully removes the old encryption code which breaks any secret stored with the previous version. During the update the store must be cleared or the user will receive a lot of garbage instead of their data. Signed-off-by: Knut Ahlers --- src/app.vue | 52 +++++++++++++++++++++++-------------------- src/crypto.js | 35 +++++++++++++++++++++++++++++ src/package-lock.json | 6 ----- src/package.json | 1 - 4 files changed, 63 insertions(+), 31 deletions(-) create mode 100644 src/crypto.js diff --git a/src/app.vue b/src/app.vue index eecb07c..f87cf57 100644 --- a/src/app.vue +++ b/src/app.vue @@ -166,7 +166,7 @@