mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-11 08:48:33 -04:00
Set correct Argon2id defaults in Typescript (#771)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user