class ArgonHasher extends AbstractHasher implements Hasher (View source)
protected int | $memory | The default memory cost factor. | |
protected int | $time | The default time cost factor. | |
protected int | $threads | The default threads factor. | |
protected bool | $verifyAlgorithm | Indicates whether to perform an algorithm check. |
array | info(string $hashedValue) Get information about the given hashed value. | from AbstractHasher |
bool | check(string $value, string $hashedValue, array $options = []) Check the given plain value against a hash. | |
void | __construct(array $options = []) Create a new hasher instance. | |
string | make(string $value, array $options = []) Hash the given value. | |
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. | |
$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. | |
int | memory(array $options) Extract the memory cost value from the options array. | |
int | time(array $options) Extract the time cost value from the options array. | |
int | threads(array $options) Extract the threads value from the options array. |
Get information about the given hashed value.
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.
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 threads value from the options array.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Hashing/ArgonHasher.html