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.
|
| Supported: "bcrypt", "argon"
|
*/
'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' => [
2018-03-18 07:50:27 -04:00
'rounds' => 10,
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' => [
'memory' => 1024,
2018-03-18 07:50:27 -04:00
'threads' => 2,
2018-03-24 14:25:38 -07:00
'time' => 2,
2018-03-18 07:50:27 -04:00
],
2018-03-19 13:29:20 -04:00
2018-01-30 08:38:49 -06:00
];