Update comment

This commit is contained in:
Vishnu 2023-03-02 12:01:18 +05:30
parent 5ebc9b6d1e
commit 8154161f6d

View file

@ -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,