Added Encrypt.js
This commit is contained in:
1 parent
42e29e719c
commit
7ebe68bd74
1 file changed
+13
@@ -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);
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in new issue
Block a user