Files
spa-api/config/hashing.php

64 lines
1.9 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
/*
|--------------------------------------------------------------------------
| bcrypt options
|--------------------------------------------------------------------------
|
2018-03-19 15:26:46 -04:00
| Here you can define the number of rounds the bcrypt algo will be using.
2018-03-18 07:47:34 -04:00
|
2018-03-18 08:59:04 -04:00
| rounds: The two digit cost parameter is the base-2 logarithm of the
| iteration count for the underlying Blowfish-based hashing
| algorithmeter and must be in range 04-31, values outside this
| range will cause crypt() to fail.
| (default: 10)
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
],
/*
|--------------------------------------------------------------------------
| argon options
|--------------------------------------------------------------------------
|
2018-03-19 15:26:46 -04:00
| These settings can be adjusted depending on your hardware.
2018-03-18 07:47:34 -04:00
|
2018-03-18 08:59:04 -04:00
| time: Maximum amount of time it may take to compute the Argon2 hash.
| (default: 2)
2018-03-18 07:47:34 -04:00
|
2018-03-19 15:15:25 -04:00
| memory: Maximum memory (in bytes) that may be used to compute the
| Argon2 hash.
2018-03-18 08:59:04 -04:00
| (default : 1024)
2018-03-18 07:47:34 -04:00
|
2018-03-18 08:59:04 -04:00
| threads: Number of threads to use for computing the Argon2 hash.
| (default : 2)
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' => [
'time' => 2,
'memory' => 1024,
2018-03-18 07:50:27 -04:00
'threads' => 2,
],
2018-03-19 13:29:20 -04:00
2018-01-30 08:38:49 -06:00
];