Update comment
This commit is contained in:
parent
5ebc9b6d1e
commit
8154161f6d
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue