mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 09:26:37 +00:00
Update srp.ts
This commit is contained in:
@@ -8,6 +8,10 @@ import { TUserEncryptionKeys } from "@app/db/schemas";
|
|||||||
|
|
||||||
import { decryptSymmetric, encryptAsymmetric, encryptSymmetric } from "./encryption";
|
import { decryptSymmetric, encryptAsymmetric, encryptSymmetric } from "./encryption";
|
||||||
|
|
||||||
|
// Importing the argon2 constants from the argon2 module fails due to an issue with importing commonjs modules.
|
||||||
|
// Read more: https://stackoverflow.com/questions/70605320/named-export-types-not-found-the-requested-module-mongoose-is-a-commonjs-mo
|
||||||
|
const ARGON_2_ID = 2;
|
||||||
|
|
||||||
export const generateSrpServerKey = async (salt: string, verifier: string) => {
|
export const generateSrpServerKey = async (salt: string, verifier: string) => {
|
||||||
// eslint-disable-next-line new-cap
|
// eslint-disable-next-line new-cap
|
||||||
const server = new jsrp.server();
|
const server = new jsrp.server();
|
||||||
|
|||||||
Reference in New Issue
Block a user