ArgonHasher
class ArgonHasher extends AbstractHasher implements Hasher (View source)
Properties
Methods
Check the given plain value against a hash.
Create a new hasher instance.
Hash the given value.
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.
Verify the hashed value's options.
Set the default password memory factor.
Set the default password timing factor.
Set the default password threads factor.
Extract the memory cost value from the options array.
Extract the time cost value from the options array.
Extract the thread's value from the options array.
Details
bool
check(string $value, string $hashedValue, array $options = [])
Check the given plain value against a hash.
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.