UNPKG

js-srp6a

Version:

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

6 lines (5 loc) 425 B
import type { Ephemeral, HashAlgorithm, PrimeGroup, Session } from './types'; export declare const createSRPServer: (hashAlgorithm: HashAlgorithm, primeGroup: PrimeGroup) => { generateEphemeral: (verifier: string) => Promise<Ephemeral>; deriveSession: (serverSecretEphemeral: string, clientPublicEphemeral: string, salt: string, username: string, verifier: string, clientSessionProof: string) => Promise<Session>; };