π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi147b06f08efd
diff --git a/web/packages/accounts/services/srp.ts b/web/packages/accounts/services/srp.tsindex 82867ba439..f018d787a0 100644--- a/web/packages/accounts/services/srp.ts+++ b/web/packages/accounts/services/srp.ts@@ -14,8 +14,6 @@ import {} from "./srp-remote";import type { UserVerificationResponse } from "./user";-const SRP_PARAMS = SRP.params["4096"];-/*** Derive a "password" (which is really an arbitrary binary value, not human* generated) for use as the SRP user password by applying a deterministic KDF@@ -80,7 +78,7 @@ export const generateSRPSetupAttributes = async (const srpUserID = uuidv4();const srpVerifierBuffer = SRP.computeVerifier(- SRP_PARAMS,+ SRP.params["4096"],convertBase64ToBuffer(srpSalt),Buffer.from(srpUserID),convertBase64ToBuffer(loginSubKey),@@ -153,7 +151,7 @@ export const generateSRPClient = async (throw Error("secret1 gen failed");}const srpClient = new SrpClient(- SRP_PARAMS,+ SRP.params["4096"],convertBase64ToBuffer(srpSalt),Buffer.from(srpUserID),convertBase64ToBuffer(loginSubKey),