laravel/config/hashing.php

53 lines
1.5 KiB
PHP
Raw Normal View History

2018-01-30 08:38:49 -06:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Hash Driver
|--------------------------------------------------------------------------
|
| This option controls the default hash driver that will be used to hash
| passwords for your application. By default, the bcrypt algorithm is
| used; however, you remain free to modify this option if you wish.
|
2018-08-04 08:52:01 -10:00
| Supported: "bcrypt", "argon", "argon2id"
2018-01-30 08:38:49 -06:00
|
*/
'driver' => 'bcrypt',
2018-03-18 07:47:34 -04:00
/*
|--------------------------------------------------------------------------
2018-03-24 14:25:38 -07:00
| Bcrypt Options
2018-03-18 07:47:34 -04:00
|--------------------------------------------------------------------------
|
2018-03-24 14:25:38 -07:00
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Bcrypt algorithm. This will allow you
| to control the amount of time it takes to hash the given password.
2018-03-18 07:47:34 -04:00
|
*/
2018-03-18 08:38:20 -04:00
2018-03-18 07:47:34 -04:00
'bcrypt' => [
2023-09-23 01:06:29 +10:00
'rounds' => env('BCRYPT_ROUNDS', 12),
2018-03-18 07:47:34 -04:00
],
/*
|--------------------------------------------------------------------------
2018-03-24 14:25:38 -07:00
| Argon Options
2018-03-18 07:47:34 -04:00
|--------------------------------------------------------------------------
|
2018-03-24 14:25:38 -07:00
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Argon algorithm. These will allow you
| to control the amount of time it takes to hash the given password.
2018-03-18 07:47:34 -04:00
|
*/
2018-03-18 08:38:20 -04:00
2018-03-18 07:47:34 -04:00
'argon' => [
2022-02-03 16:06:00 +01:00
'memory' => 65536,
'threads' => 1,
'time' => 4,
2018-03-18 07:50:27 -04:00
],
2018-03-19 13:29:20 -04:00
2018-01-30 08:38:49 -06:00
];