iya-sts
    Preparing search index...

    Variable passwordHashSpec

    passwordHashSpec: (
        spec: any,
    ) =>
        | {
            algorithm: string;
            logN?: undefined;
            memory: any;
            p?: undefined;
            parallelism: any;
            passes: any;
            r?: undefined;
        }
        | {
            algorithm: string;
            logN: any;
            memory?: undefined;
            p: number;
            parallelism?: undefined;
            passes?: undefined;
            r: any;
        } = passwordHashSpec

    Type Declaration

      • (
            spec: any,
        ):
            | {
                algorithm: string;
                logN?: undefined;
                memory: any;
                p?: undefined;
                parallelism: any;
                passes: any;
                r?: undefined;
            }
            | {
                algorithm: string;
                logN: any;
                memory?: undefined;
                p: number;
                parallelism?: undefined;
                passes?: undefined;
                r: any;
            }
      • Returns the hash a NEW password is written under, clamped to the floors and ceilings above: the algorithm and its parameters.

        argon2id, when asked for, where this runtime has it, and scrypt otherwise (said once, STS-KEYS-0155). An absent spec is scrypt at 2^15, r=8, p=3 (#872).

        Parameters

        • spec: any

          { algorithm, memory, passes, parallelism } or { algorithm: 'scrypt', logN, r, p }

        Returns
            | {
                algorithm: string;
                logN?: undefined;
                memory: any;
                p?: undefined;
                parallelism: any;
                passes: any;
                r?: undefined;
            }
            | {
                algorithm: string;
                logN: any;
                memory?: undefined;
                p: number;
                parallelism?: undefined;
                passes?: undefined;
                r: any;
            }

        the spec in force