From 7ebe68bd74830e56aa95a30d9f1ee8f0087d3976 Mon Sep 17 00:00:00 2001 From: Braeden57 Date: Mon, 25 Jan 2021 08:46:35 -0800 Subject: [PATCH] Added Encrypt.js --- config/encrypt.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/encrypt.js diff --git a/config/encrypt.js b/config/encrypt.js new file mode 100644 index 0000000..27ef8b8 --- /dev/null +++ b/config/encrypt.js @@ -0,0 +1,13 @@ +const bcrypt = require('bcryptjs'); + +// Set `password` as the password you will use +// Then Run this script and copy the output as it is your encrypted password +let password = "APPLEZ57"; + +// Encrypts password and returns encrypted password +bcrypt.genSalt(10, (err, salt) => { + bcrypt.hash(password, salt, (err, hash) => { + if (err) throw err; + console.log(hash); + }); +});