@wault-pw/srp6a-webcrypto
Version:
Pure javascript implementation of SRP-6a (RFC-5054, RFC-2945) using web-crypto
15 lines (14 loc) • 535 B
TypeScript
import bigInt from "big-integer";
import { Params } from "./rfc5054";
export declare class Engine {
readonly N: bigInt.BigInteger;
readonly g: bigInt.BigInteger;
readonly hash: string;
get N_SIZE(): number;
constructor(params: Params);
k(): Promise<bigInt.BigInteger>;
isModZero(a: bigInt.BigInteger, b: bigInt.BigInteger): boolean;
HASH(...inputs: (Uint8Array)[]): Promise<Uint8Array>;
PAD(input: Uint8Array): Uint8Array;
HASHED_CRED(username: string, password: string): Promise<Uint8Array>;
}