BcryptHasher
class BcryptHasher extends AbstractHasher implements Hasher (View source)
Properties
| protected int | $rounds | The default cost factor.  | 
                |
| protected bool | $verifyAlgorithm | Indicates whether to perform an algorithm check.  | 
                |
| protected int|null | $limit | The maximum allowed length of strings that can be hashed.  | 
                
Methods
Check the given plain value against a hash.
Create a new hasher instance.
Hash the given value.
Check if the given hash has been hashed using the given options.
Verifies that the configuration is less than or equal to what is configured.
Verify the hashed value's algorithm.
Verify the hashed value's options.
Set the default password work factor.
Extract the cost value from the options array.
Details
        
                            array
    info(string $hashedValue)
        
    
    Get information about the given hashed value.
        
                            bool
    check(string $value, string $hashedValue, array $options = [])
        
    
    Check the given plain value against a hash.
        
                            
    __construct(array $options = [])
        
    
    Create a new hasher instance.
        
                            string
    make(string $value, array $options = [])
        
    
    Hash the given value.
        
                            bool
    needsRehash(string $hashedValue, array $options = [])
        
    
    Check if the given hash has been hashed using the given options.
        
                            
    verifyConfiguration($value)
        
    
    | internal | 
Verifies that the configuration is less than or equal to what is configured.
        
                    protected        bool
    isUsingCorrectAlgorithm(string $hashedValue)
        
    
    Verify the hashed value's algorithm.
        
                    protected        bool
    isUsingValidOptions(string $hashedValue)
        
    
    Verify the hashed value's options.
        
                            $this
    setRounds(int $rounds)
        
    
    Set the default password work factor.
        
                    protected        int
    cost(array $options = [])
        
    
    Extract the cost value from the options array.