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); + }); +});