NotPwnedVerifier
class NotPwnedVerifier implements UncompromisedVerifier (View source)
Properties
| protected Factory | $factory | The HTTP factory instance. |
|
| protected int | $timeout | The number of seconds the request can run before timing out. |
Methods
Verify that the given data has not been compromised in public breaches.
Get the hash and its first 5 chars.
Search by the given hash prefix and returns all occurrences of leaked passwords.
Details
void
__construct(Factory $factory, int|null $timeout = null)
Create a new uncompromised verifier.
bool
verify(array $data)
Verify that the given data has not been compromised in public breaches.
protected array
getHash(string $value)
Get the hash and its first 5 chars.
protected Collection
search(string $hashPrefix)
Search by the given hash prefix and returns all occurrences of leaked passwords.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.