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 22
__construct(Factory $factory, int $timeout = 30)
Create a new uncompromised verifier.
at line 31
bool
verify(array $data)
Verify that the given data has not been compromised in public breaches.
at line 53
protected array
getHash(string $value)
Get the hash and its first 5 chars.
at line 65
protected Collection
search(string $hashPrefix)
Search by the given hash prefix and returns all occurrences of leaked passwords.