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
bool
check(string $value, string $hashedValue, array $options = [])
Check the given plain value against a hash.
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.
from
ArgonHasher
verifyConfiguration($value)
Verifies that the configuration is less than or equal to what is configured.
from
ArgonHasher
bool
isUsingCorrectAlgorithm(string $hashedValue)
Verify the hashed value's algorithm.
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.