Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update srp.ts

Daniel Hougaard3ea529d525b9
diff --git a/backend/src/lib/crypto/srp.ts b/backend/src/lib/crypto/srp.ts
index cdf8626093..6f4588e3fa 100644
--- a/backend/src/lib/crypto/srp.ts
+++ b/backend/src/lib/crypto/srp.ts
@@ -33,7 +33,9 @@ export const srpCheckClientProof = async (
return server.checkClientProof(clientProof);
};
-// FOR GHOST USER STUFF
+// Ghost user related:
+// This functionality is intended for ghost user logic. This happens on the frontend when a user is being created.
+// We replicate the same functionality on the backend when creating a ghost user.
export const generateUserSrpKeys = async (email: string, password: string) => {
const pair = nacl.box.keyPair();
const secretKeyUint8Array = pair.secretKey;