class Illuminate / Hashing / ArgonHasher

ArgonHasher

Extends

Implements

Properties

protected

$memory int

The default memory cost factor.

Default: 1024
protected

$time int

The default time cost factor.

Default: 2
protected

$threads int

The default threads factor.

Default: 2
protected

$verifyAlgorithm bool

Indicates whether to perform an algorithm check.

Default: false

Methods

public

__construct ( array $options ) : void

Create a new hasher instance.

Parameters

  • $options array
public

make ( $value , array $options ) : string

Hash the given value.

Parameters

  • $value string
  • $options array
protected

algorithm ( ) : int

Get the algorithm that should be used for hashing.

public

check ( $value , $hashedValue , array $options ) : bool

Check the given plain value against a hash.

Parameters

  • $value string
  • $hashedValue string
  • $options array
public

needsRehash ( $hashedValue , array $options ) : bool

Check if the given hash has been hashed using the given options.

Parameters

  • $hashedValue string
  • $options array
public

setMemory ( int $memory ) : $this

Set the default password memory factor.

Parameters

  • $memory int
public

setTime ( int $time ) : $this

Set the default password timing factor.

Parameters

  • $time int
public

setThreads ( int $threads ) : $this

Set the default password threads factor.

Parameters

  • $threads int
protected

memory ( array $options ) : int

Extract the memory cost value from the options array.

Parameters

  • $options array
protected

time ( array $options ) : int

Extract the time cost value from the options array.

Parameters

  • $options array
protected

threads ( array $options ) : int

Extract the thread's value from the options array.

Parameters

  • $options array