Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Use correct default encryption type (#771)

Leendert de Borst819e00feaa62
diff --git a/apps/browser-extension/src/utils/EncryptionUtility.ts b/apps/browser-extension/src/utils/EncryptionUtility.ts
index 9906a8347..c3ab27550 100644
--- a/apps/browser-extension/src/utils/EncryptionUtility.ts
+++ b/apps/browser-extension/src/utils/EncryptionUtility.ts
@@ -6,18 +6,18 @@ import { Buffer } from 'buffer';
/**
* Utility class for encryption operations including:
- * - Argon2id key derivation
+ * - Argon2Id key derivation
* - AES-GCM symmetric encryption/decryption
* - RSA-OAEP asymmetric encryption/decryption
*/
export class EncryptionUtility {
/**
- * Derives a key from a password using Argon2id
+ * Derives a key from a password using Argon2Id
*/
public static async deriveKeyFromPassword(
password: string,
salt: string,
- encryptionType: string = 'Argon2id',
+ encryptionType: string = 'Argon2Id',
encryptionSettings: string = '{"Iterations":1,"MemorySize":1024,"DegreeOfParallelism":4}'
): Promise<Uint8Array> {
const settings = JSON.parse(encryptionSettings);
diff --git a/apps/mobile-app/utils/EncryptionUtility.tsx b/apps/mobile-app/utils/EncryptionUtility.tsx
index 9ff500957..5093372bf 100644
--- a/apps/mobile-app/utils/EncryptionUtility.tsx
+++ b/apps/mobile-app/utils/EncryptionUtility.tsx
@@ -9,25 +9,25 @@ import { MailboxEmail } from './types/webapi/MailboxEmail';
/**
* Utility class for encryption operations including:
- * - Argon2id key derivation
+ * - Argon2Id key derivation
* - AES-GCM symmetric encryption/decryption
* - RSA-OAEP asymmetric encryption/decryption
*/
class EncryptionUtility {
/**
- * Derives a key from a password using Argon2id
+ * Derives a key from a password using Argon2Id
*/
public static async deriveKeyFromPassword(
password: string,
salt: string,
- encryptionType: string = 'Argon2id',
+ encryptionType: string = 'Argon2Id',
encryptionSettings: string = '{"Iterations":1,"MemorySize":1024,"DegreeOfParallelism":4}'
): Promise<Uint8Array> {
const settings = JSON.parse(encryptionSettings);
try {
if (encryptionType !== 'Argon2Id') {
- throw new Error('Unsupported encryption type');
+ throw new Error('Unsupported encryption type: ' + encryptionType);
}
const result = await argon2(