From 9c332a90656b02072b012db98b7732635333f64b Mon Sep 17 00:00:00 2001 From: Harminder Date: Tue, 5 Jun 2018 17:52:18 +0530 Subject: [PATCH] feat(hash): add hash config file --- config/hash.js | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 config/hash.js diff --git a/config/hash.js b/config/hash.js new file mode 100644 index 0000000..c8731f1 --- /dev/null +++ b/config/hash.js @@ -0,0 +1,46 @@ +'use strict' + +module.exports = { + /* + |-------------------------------------------------------------------------- + | Driver + |-------------------------------------------------------------------------- + | + | Driver to be used for hashing values. The same driver is used by the + | auth module too. + | + */ + driver: Env.get('APP_KEY'), + + /* + |-------------------------------------------------------------------------- + | Bcrypt + |-------------------------------------------------------------------------- + | + | Config related to bcrypt hashing. https://www.npmjs.com/package/bcrypt + | package is used internally. + | + */ + bcrypt: { + rounds: 10 + }, + + /* + |-------------------------------------------------------------------------- + | Argon + |-------------------------------------------------------------------------- + | + | Config related to argon. https://www.npmjs.com/package/argon2 package is + | used internally. + | + | Since argon is optional, you will have to install the dependency yourself + | + |============================================================================ + | npm i argon2 + |============================================================================ + | + */ + argon: { + type: 1 + } +}