UNPKG

@swan-io/srp

Version:

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

6 lines (5 loc) 436 B
import { HashAlgorithm } from "./types"; export declare const hashBytes: Record<HashAlgorithm, number>; export declare const getRandomValues: (array: Uint8Array) => void; export declare const digest: (hashAlgorithm: HashAlgorithm, data: ArrayBuffer) => Promise<ArrayBuffer>; export declare const deriveKeyWithPBKDF2: (hashAlgorithm: HashAlgorithm, salt: ArrayBuffer, password: string, iterations?: number) => Promise<ArrayBuffer>;