Set correct Argon2id defaults in Typescript (#771)

This commit is contained in:
Leendert de Borst
2025-05-11 15:30:09 +02:00
parent 819e00feaa
commit 9a0a5f3bbf
2 changed files with 2 additions and 2 deletions

View File

@@ -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<Uint8Array> {
const settings = JSON.parse(encryptionSettings);

View File

@@ -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<Uint8Array> {
const settings = JSON.parse(encryptionSettings);