home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

hashing.php (1572B)


      1 <?php
      2 
      3 return [
      4 
      5     /*
      6     |--------------------------------------------------------------------------
      7     | Default Hash Driver
      8     |--------------------------------------------------------------------------
      9     |
     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
     12     | used; however, you remain free to modify this option if you wish.
     13     |
     14     | Supported: "bcrypt", "argon", "argon2id"
     15     |
     16     */
     17 
     18     'driver' => 'bcrypt',
     19 
     20     /*
     21     |--------------------------------------------------------------------------
     22     | Bcrypt Options
     23     |--------------------------------------------------------------------------
     24     |
     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
     27     | to control the amount of time it takes to hash the given password.
     28     |
     29     */
     30 
     31     'bcrypt' => [
     32         'rounds' => env('BCRYPT_ROUNDS', 12),
     33     ],
     34 
     35     /*
     36     |--------------------------------------------------------------------------
     37     | Argon Options
     38     |--------------------------------------------------------------------------
     39     |
     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
     42     | to control the amount of time it takes to hash the given password.
     43     |
     44     */
     45 
     46     'argon' => [
     47         'memory' => 65536,
     48         'threads' => 1,
     49         'time' => 4,
     50     ],
     51 
     52 ];