UNPKG

passwords-sqnfa-web

Version:

This library implements the recommendations that apply to client-side password handling from NIST and OWASP. The purpose of this library is to provide an easy pluggable client-side password preprocessor.

17 lines (16 loc) 401 B
export interface Failure { handler: string; rule: string; expected: number; actual: number; } export declare class Result { readonly isSuccess: boolean; private password?; private failures?; private constructor(); getPassword(): string; getFailures(): Failure[]; static ok(password: string): Result; static fail(failure: Failure | Failure[]): Result; }