HibpService

Have I Been Pwned k-anonymity leaked-password check. Only the first 5 hex chars of the SHA-1 hash leave the browser; the full password is never transmitted. Fail-open on network errors.

TypeScriptexample.ts
import { HibpService } from '@angular-helpers/security'

# Methods

MethodSignatureReturnsDescription
isSupportedisSupported(): booleanbooleanPublic method isSupported.
isPasswordLeakedisPasswordLeaked(password: string): Promise<HibpResult>Promise<HibpResult>Returns whether the given password is present in the HIBP breach corpus. Never throws: network failures return `{ leaked: false, error: 'network' }`, unsupported environments return `{ leaked: false, error: 'unsupported' }`.
LCP N/A
CLS N/A
INP N/A