UNPKG

@swan-io/srp

Version:

A modern SRP implementation for Node.js (v15+) and web browsers

11 lines (10 loc) 373 B
import { SRPInt } from "./SRPInt"; import { 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; };