Argon2IdHasher
class Argon2IdHasher extends ArgonHasher (View source)
Properties
| protected int | $memory | The default memory cost factor.  | 
                from ArgonHasher | 
| protected int | $time | The default time cost factor.  | 
                from ArgonHasher | 
| protected int | $threads | The default threads factor.  | 
                from ArgonHasher | 
| protected bool | $verifyAlgorithm | Indicates whether to perform an algorithm check.  | 
                from ArgonHasher | 
Methods
Check the given plain value against a hash.
Get the algorithm that should be used for hashing.
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.
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.
        
                    protected        int
    algorithm()
        
    
    Get the algorithm that should be used for hashing.
        
                            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
    setMemory(int $memory)
        
    
    Set the default password memory factor.
        
                            $this
    setTime(int $time)
        
    
    Set the default password timing factor.
        
                            $this
    setThreads(int $threads)
        
    
    Set the default password threads factor.
        
                    protected        int
    memory(array $options)
        
    
    Extract the memory cost value from the options array.
        
                    protected        int
    time(array $options)
        
    
    Extract the time cost value from the options array.
        
                    protected        int
    threads(array $options)
        
    
    Extract the thread's value from the options array.