@swan-io/srp
Version:
A modern SRP implementation for Node.js (v15+) and web browsers
6 lines (5 loc) • 425 B
TypeScript
import { 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>;
};