UNPKG

ngx-pwd-strength

Version:

Angular Package, that measure password strength and indicate how secure is it

22 lines (21 loc) 1.01 kB
import { pwdConfiguration, PwdScore } from "./types"; import * as i0 from "@angular/core"; export declare class NgxPwdStrengthService { private _options; private score; updatedScore$: import("rxjs").Observable<any>; updateScore(data: any): void; init(options: pwdConfiguration): void; /** * Score: * 0 # too guessable: risky password. (guesses < 10^3) * 1 # very guessable: protection from throttled online attacks. (guesses < 10^6) * 2 # somewhat guessable: protection from unthrottled online attacks. (guesses < 10^8) * 3 # safely unguessable: moderate protection from offline slow-hash scenario. (guesses < 10^10) * 4 # very unguessable: strong protection from offline slow-hash scenario. (guesses >= 10^10) * @param password */ getScore(password: string): PwdScore; static ɵfac: i0.ɵɵFactoryDeclaration<NgxPwdStrengthService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgxPwdStrengthService>; }