π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Conv
Manav Rathi938732094802
diff --git a/web/packages/shared/crypto/helpers.ts b/web/packages/shared/crypto/helpers.tsindex d1d53f304c..a33e36ef6c 100644--- a/web/packages/shared/crypto/helpers.ts+++ b/web/packages/shared/crypto/helpers.ts@@ -57,15 +57,13 @@ export async function generateAndSaveIntermediateKeyAttributes(passphrase,intermediateKekSalt,);- const encryptedKeyAttributes = await cryptoWorker.encryptToB64(- key,- intermediateKek.key,- );+ const { encryptedData: encryptedKey, nonce: keyDecryptionNonce } =+ await cryptoWorker.encryptBox(key, intermediateKek.key);const intermediateKeyAttributes = Object.assign(existingKeyAttributes, {kekSalt: intermediateKekSalt,- encryptedKey: encryptedKeyAttributes.encryptedData,- keyDecryptionNonce: encryptedKeyAttributes.nonce,+ encryptedKey,+ keyDecryptionNonce,opsLimit: intermediateKek.opsLimit,memLimit: intermediateKek.memLimit,});