Added Encrypt.js

This commit is contained in:
SowinskiBraeden committed 2021-01-25 08:46:35 -08:00
1 parent 42e29e719c
commit 7ebe68bd74
1 file changed
+13
+13
View File
@@ -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);
});
});