aboutsummaryrefslogtreecommitdiffstats
path: root/config/hash.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-22 11:12:36 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-22 11:12:36 +0200
commitb018adf240679ec59a7344e30be39400f1ecd8af (patch)
treec076635761667dad302716b498088f1047281e46 /config/hash.js
downloadferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.tar.gz
ferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.tar.zst
ferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.zip
Initial commit
Diffstat (limited to 'config/hash.js')
-rw-r--r--config/hash.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/config/hash.js b/config/hash.js
new file mode 100644
index 0000000..42f5805
--- /dev/null
+++ b/config/hash.js
@@ -0,0 +1,49 @@
1'use strict'
2
3/** @type {import('@adonisjs/framework/src/Env')} */
4const Env = use('Env')
5
6module.exports = {
7 /*
8 |--------------------------------------------------------------------------
9 | Driver
10 |--------------------------------------------------------------------------
11 |
12 | Driver to be used for hashing values. The same driver is used by the
13 | auth module too.
14 |
15 */
16 driver: Env.get('HASH_DRIVER', 'bcrypt'),
17
18 /*
19 |--------------------------------------------------------------------------
20 | Bcrypt
21 |--------------------------------------------------------------------------
22 |
23 | Config related to bcrypt hashing. https://www.npmjs.com/package/bcrypt
24 | package is used internally.
25 |
26 */
27 bcrypt: {
28 rounds: 10
29 },
30
31 /*
32 |--------------------------------------------------------------------------
33 | Argon
34 |--------------------------------------------------------------------------
35 |
36 | Config related to argon. https://www.npmjs.com/package/argon2 package is
37 | used internally.
38 |
39 | Since argon is optional, you will have to install the dependency yourself
40 |
41 |============================================================================
42 | npm i argon2
43 |============================================================================
44 |
45 */
46 argon: {
47 type: 1
48 }
49}