class
Illuminate
/
Validation
/
NotPwnedVerifier
NotPwnedVerifier
Implements
Properties
protected
$timeout int
The number of seconds the request can run before timing out.
Default: null
Methods
public
__construct ( $factory , $timeout ) : void
Create a new uncompromised verifier.
Parameters
- $factory Factory
- $timeout int|null
public
verify ( $data ) : bool
Verify that the given data has not been compromised in public breaches.
Parameters
- $data array
protected
getHash ( $value ) : array
Get the hash and its first 5 chars.
Parameters
- $value string
protected
search ( $hashPrefix ) : Illuminate\...\Collection
Search by the given hash prefix and returns all occurrences of leaked passwords.
Parameters
- $hashPrefix string