From 8154161f6d5aa1a7fc010ee3655fb11bbb193d73 Mon Sep 17 00:00:00 2001 From: Vishnu Date: Thu, 2 Mar 2023 12:01:18 +0530 Subject: [PATCH] Update comment --- src/utils/crypto/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/crypto/index.ts b/src/utils/crypto/index.ts index dd0731a11..f913144ca 100644 --- a/src/utils/crypto/index.ts +++ b/src/utils/crypto/index.ts @@ -58,10 +58,10 @@ export async function generateKeyAttributes( return { keyAttributes, masterKey }; } -// We encrypt existingKeyAttributes with a key derived from the passphrase (with -// Interactive mem and ops limits) to avoid saving them to local storage in -// plain text. This means that on the web user will always have to enter their -// passphrase to access their masterKey. +// We encrypt the masterKey, with an intermediate key derived from the +// passphrase (with Interactive mem and ops limits) to avoid saving it to local +// storage in plain text. This means that on the web user will always have to +// enter their passphrase to access their masterKey. export async function generateAndSaveIntermediateKeyAttributes( passphrase: string, existingKeyAttributes: KeyAttributes,