aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/config/hash.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-13 00:45:01 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-13 00:45:01 +0530
commit2d27d5e66649d4f5baf127a53ee5ae524eae3a59 (patch)
treec592ea219ac8cd987fc367f57b54034c450ab2ab /src/internal-server/config/hash.js
parentFerdi v5.6.0 (diff)
parent5.6.1-nightly.24 [skip ci] (diff)
downloadferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.gz
ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.zst
ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.zip
chore: merge from nightly branch into release branch in prep for next beta
Diffstat (limited to 'src/internal-server/config/hash.js')
-rw-r--r--src/internal-server/config/hash.js47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/internal-server/config/hash.js b/src/internal-server/config/hash.js
new file mode 100644
index 000000000..bbf32f691
--- /dev/null
+++ b/src/internal-server/config/hash.js
@@ -0,0 +1,47 @@
1/** @type {import('@adonisjs/framework/src/Env')} */
2const Env = use('Env');
3
4module.exports = {
5 /*
6 |--------------------------------------------------------------------------
7 | Driver
8 |--------------------------------------------------------------------------
9 |
10 | Driver to be used for hashing values. The same driver is used by the
11 | auth module too.
12 |
13 */
14 driver: Env.get('HASH_DRIVER', 'bcrypt'),
15
16 /*
17 |--------------------------------------------------------------------------
18 | Bcrypt
19 |--------------------------------------------------------------------------
20 |
21 | Config related to bcrypt hashing. https://www.npmjs.com/package/bcrypt
22 | package is used internally.
23 |
24 */
25 bcrypt: {
26 rounds: 10,
27 },
28
29 /*
30 |--------------------------------------------------------------------------
31 | Argon
32 |--------------------------------------------------------------------------
33 |
34 | Config related to argon. https://www.npmjs.com/package/argon2 package is
35 | used internally.
36 |
37 | Since argon is optional, you will have to install the dependency yourself
38 |
39 |============================================================================
40 | npm i argon2
41 |============================================================================
42 |
43 */
44 argon: {
45 type: 1,
46 },
47};