| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | return [ | 3 | return [ | |
| 4 | 4 | |||
| 5 | /* | 5 | /* | |
| 6 | |-------------------------------------------------------------------------- | 6 | |-------------------------------------------------------------------------- | |
| 7 | | Default Hash Driver | 7 | | Default Hash Driver | |
| 8 | |-------------------------------------------------------------------------- | 8 | |-------------------------------------------------------------------------- | |
| 9 | | | 9 | | | |
| 10 | | This option controls the default hash driver that will be used to hash | 10 | | This option controls the default hash driver that will be used to hash | |
| 11 | | passwords for your application. By default, the bcrypt algorithm is | 11 | | passwords for your application. By default, the bcrypt algorithm is | |
| 12 | | used; however, you remain free to modify this option if you wish. | 12 | | used; however, you remain free to modify this option if you wish. | |
| 13 | | | 13 | | | |
| 14 | | Supported: "bcrypt", "argon", "argon2id" | 14 | | Supported: "bcrypt", "argon", "argon2id" | |
| 15 | | | 15 | | | |
| 16 | */ | 16 | */ | |
| 17 | 17 | |||
| 18 | 'driver' => 'bcrypt', | 18 | 'driver' => 'bcrypt', | |
| 19 | 19 | |||
| 20 | /* | 20 | /* | |
| 21 | |-------------------------------------------------------------------------- | 21 | |-------------------------------------------------------------------------- | |
| 22 | | Bcrypt Options | 22 | | Bcrypt Options | |
| 23 | |-------------------------------------------------------------------------- | 23 | |-------------------------------------------------------------------------- | |
| 24 | | | 24 | | | |
| 25 | | Here you may specify the configuration options that should be used when | 25 | | Here you may specify the configuration options that should be used when | |
| 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you | 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you | |
| 27 | | to control the amount of time it takes to hash the given password. | 27 | | to control the amount of time it takes to hash the given password. | |
| 28 | | | 28 | | | |
| 29 | */ | 29 | */ | |
| 30 | 30 | |||
| 31 | 'bcrypt' => [ | 31 | 'bcrypt' => [ | |
| 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), | 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), | |
| 33 | ], | 33 | ], | |
| 34 | 34 | |||
| 35 | /* | 35 | /* | |
| 36 | |-------------------------------------------------------------------------- | 36 | |-------------------------------------------------------------------------- | |
| 37 | | Argon Options | 37 | | Argon Options | |
| 38 | |-------------------------------------------------------------------------- | 38 | |-------------------------------------------------------------------------- | |
| 39 | | | 39 | | | |
| 40 | | Here you may specify the configuration options that should be used when | 40 | | Here you may specify the configuration options that should be used when | |
| 41 | | passwords are hashed using the Argon algorithm. These will allow you | 41 | | passwords are hashed using the Argon algorithm. These will allow you | |
| 42 | | to control the amount of time it takes to hash the given password. | 42 | | to control the amount of time it takes to hash the given password. | |
| 43 | | | 43 | | | |
| 44 | */ | 44 | */ | |
| 45 | 45 | |||
| 46 | 'argon' => [ | 46 | 'argon' => [ | |
| 47 | 'memory' => 8192, | <> | 47 | 'memory' => 1024, |
| 48 | 'threads' => 2, | = | 48 | 'threads' => 2, |
| 49 | 'time' => 2, | 49 | 'time' => 2, | |
| 50 | ], | 50 | ], | |
| 51 | 51 | |||
| 52 | ]; | 52 | ]; |