NotPwnedVerifier
class NotPwnedVerifier implements UncompromisedVerifier
Methods
bool
verify(array $data)
Verify that the given data has not been compromised in public breaches.
array
getHash(string $value)
Get the hash and its first 5 chars.
search(string $hashPrefix)
Search by the given hash prefix and returns all occurrences of leaked passwords.
Details
at line 21
__construct(Factory $factory, int $timeout = 30)
Create a new uncompromised verifier.
at line 30
bool
verify(array $data)
Verify that the given data has not been compromised in public breaches.
at line 52
protected array
getHash(string $value)
Get the hash and its first 5 chars.
at line 64
protected Collection
search(string $hashPrefix)
Search by the given hash prefix and returns all occurrences of leaked passwords.