UNPKG

js-srp6a

Version:

A modern SRP implementation for Node.js / Bun and web browsers

11 lines (10 loc) 368 B
import { SRPInt } from './SRPInt'; import type { HashAlgorithm, PrimeGroup } from './types'; export declare const getParams: (hashAlgorithm: HashAlgorithm, primeGroup: PrimeGroup) => { N: SRPInt; g: SRPInt; k: () => Promise<SRPInt>; H: (...input: (SRPInt | string)[]) => Promise<SRPInt>; PAD: (integer: SRPInt) => SRPInt; hashBytes: number; };