From 9a0a5f3bbff0f9b87af378ca0e80d571ee2fc13b Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Sun, 11 May 2025 15:30:09 +0200 Subject: [PATCH] Set correct Argon2id defaults in Typescript (#771) --- apps/browser-extension/src/utils/EncryptionUtility.ts | 2 +- apps/mobile-app/utils/EncryptionUtility.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/browser-extension/src/utils/EncryptionUtility.ts b/apps/browser-extension/src/utils/EncryptionUtility.ts index c3ab27550..3a041446d 100644 --- a/apps/browser-extension/src/utils/EncryptionUtility.ts +++ b/apps/browser-extension/src/utils/EncryptionUtility.ts @@ -18,7 +18,7 @@ export class EncryptionUtility { password: string, salt: string, encryptionType: string = 'Argon2Id', - encryptionSettings: string = '{"Iterations":1,"MemorySize":1024,"DegreeOfParallelism":4}' + encryptionSettings: string = '{"Iterations":2,"MemorySize":19456,"DegreeOfParallelism":1}' ): Promise { const settings = JSON.parse(encryptionSettings); diff --git a/apps/mobile-app/utils/EncryptionUtility.tsx b/apps/mobile-app/utils/EncryptionUtility.tsx index 5093372bf..4d31e277f 100644 --- a/apps/mobile-app/utils/EncryptionUtility.tsx +++ b/apps/mobile-app/utils/EncryptionUtility.tsx @@ -21,7 +21,7 @@ class EncryptionUtility { password: string, salt: string, encryptionType: string = 'Argon2Id', - encryptionSettings: string = '{"Iterations":1,"MemorySize":1024,"DegreeOfParallelism":4}' + encryptionSettings: string = '{"Iterations":2,"MemorySize":19456,"DegreeOfParallelism":1}' ): Promise { const settings = JSON.parse(encryptionSettings);