Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update srp.ts
Daniel Hougaardf378d6cc2bdb
diff --git a/backend/src/lib/crypto/srp.ts b/backend/src/lib/crypto/srp.tsindex 452c54c2ad..370f9e3547 100644--- a/backend/src/lib/crypto/srp.ts+++ b/backend/src/lib/crypto/srp.ts@@ -1,4 +1,4 @@-import argon2, { argon2id } from "argon2";+import argon2 from "argon2";import crypto from "crypto";import jsrp from "jsrp";import nacl from "tweetnacl";@@ -58,7 +58,7 @@ export const generateUserSrpKeys = async (email: string, password: string) => {timeCost: 3,parallelism: 1,hashLength: 32,- type: argon2id,+ type: 2,raw: true});if (!derivedKey) throw new Error("Failed to derive key from password");@@ -102,7 +102,7 @@ export const getUserPrivateKey = async (password: string, user: TUserEncryptionKtimeCost: 3,parallelism: 1,hashLength: 32,- type: argon2id,+ type: 2,raw: true});if (!derivedKey) throw new Error("Failed to derive key from password");