]> BookStack Code Mirror - bookstack/blob - app/Config/hashing.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / app / Config / hashing.php
1 <?php
2
3 /**
4  * Hashing configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10
11 return [
12
13     // Default Hash Driver
14     // This option controls the default hash driver that will be used to hash
15     // passwords for your application. By default, the bcrypt algorithm is used.
16     // Supported: "bcrypt", "argon", "argon2id"
17     'driver' => 'bcrypt',
18
19     // Bcrypt Options
20     // Here you may specify the configuration options that should be used when
21     // passwords are hashed using the Bcrypt algorithm. This will allow you
22     // to control the amount of time it takes to hash the given password.
23     'bcrypt' => [
24         'rounds' => env('BCRYPT_ROUNDS', 12),
25         'verify' => true,
26     ],
27
28     // Argon Options
29     // Here you may specify the configuration options that should be used when
30     // passwords are hashed using the Argon algorithm. These will allow you
31     // to control the amount of time it takes to hash the given password.
32     'argon' => [
33         'memory'  => 1024,
34         'threads' => 2,
35         'time'    => 2,
36     ],
37
38 ];