UNPKG

@codecot/pw-checker

Version:

A comprehensive CLI tool to audit passwords locally using HIBP and import from Chrome/Bitwarden

41 lines (40 loc) 1.22 kB
interface BreachInfo { Name: string; Title: string; Domain: string; BreachDate: string; AddedDate: string; DataClasses: string[]; Description: string; } /** * Check if an email/username has been part of a data breach * This requires an API key from HIBP for detailed info */ export declare function checkBreachInfo(username: string, retryCount?: number): Promise<BreachInfo[] | null>; /** * Check breach information for all accounts in the database with proper rate limiting */ export declare function checkAllAccountsForBreaches(limit?: number, resume?: boolean): Promise<void>; /** * Get progress information about breach checking */ export declare function getBreachCheckProgress(): Promise<{ total: number; checked: number; breached: number; safe: number; remaining: number; totalEntries: number; entriesAffected: number; }>; /** * Run breach checks in scheduled mode - processes a small batch and exits * Perfect for cron jobs or task schedulers */ export declare function runScheduledBreachCheck(batchSize?: number): Promise<boolean>; /** * Display breach check statistics */ export declare function showBreachStatistics(): Promise<void>; export {};