Skip to content

Commit 11f0e4e

Browse files
committed
Merge branch 'add-hashing-config' of https://github.com/huguesjoyal/laravel-laravel into huguesjoyal-add-hashing-config
2 parents 534b7ac + f33dc10 commit 11f0e4e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

config/hashing.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,47 @@
1717

1818
'driver' => 'bcrypt',
1919

20+
/*
21+
|--------------------------------------------------------------------------
22+
| bcrypt options
23+
|--------------------------------------------------------------------------
24+
|
25+
| Here you can define the number of rounds the bcrypt algo will be using.
26+
|
27+
| rounds: The two digit cost parameter is the base-2 logarithm of the
28+
| iteration count for the underlying Blowfish-based hashing
29+
| algorithmeter and must be in range 04-31, values outside this
30+
| range will cause crypt() to fail.
31+
| (default: 10)
32+
*/
33+
34+
'bcrypt' => [
35+
'rounds' => 10,
36+
],
37+
38+
/*
39+
|--------------------------------------------------------------------------
40+
| argon options
41+
|--------------------------------------------------------------------------
42+
|
43+
| These settings can be adjusted depending on your hardware.
44+
|
45+
| time: Maximum amount of time it may take to compute the Argon2 hash.
46+
| (default: 2)
47+
|
48+
| memory: Maximum memory (in bytes) that may be used to compute the
49+
| Argon2 hash.
50+
| (default : 1024)
51+
|
52+
| threads: Number of threads to use for computing the Argon2 hash.
53+
| (default : 2)
54+
|
55+
*/
56+
57+
'argon' => [
58+
'time' => 2,
59+
'memory' => 1024,
60+
'threads' => 2,
61+
],
62+
2063
];

0 commit comments

Comments
 (0)