diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-25 13:00:43 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-07-25 13:00:43 +0530 |
commit | 57ac476e3303993ea523c43b7de638d4f1ce3e85 (patch) | |
tree | 8078dd2da528fd59c64b29df038efb6f9c04fcfd /backend/hash.js | |
parent | 34297348929e64cc2948f6b675d00674f8e3c347 (diff) | |
download | admin-panel-57ac476e3303993ea523c43b7de638d4f1ce3e85.tar.gz admin-panel-57ac476e3303993ea523c43b7de638d4f1ce3e85.tar.bz2 admin-panel-57ac476e3303993ea523c43b7de638d4f1ce3e85.zip |
fixed bugs
Diffstat (limited to 'backend/hash.js')
-rw-r--r-- | backend/hash.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/hash.js b/backend/hash.js new file mode 100644 index 0000000..e6d3ba5 --- /dev/null +++ b/backend/hash.js @@ -0,0 +1,9 @@ +const bcrypt = require('bcryptjs'); + +const password = 'password123'; +const saltRounds = 10; + +bcrypt.hash(password, saltRounds, function(err, hash) { + if (err) throw err; + console.log('Hashed password:', hash); +}); |