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
                    void
                
                
                
            
                    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
        
                            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.