aboutsummaryrefslogblamecommitdiffstats
path: root/backend/hash.js
blob: e6d3ba5fd619dc94db3a4083320408c89a8ff67d (plain) (tree)
1
2
3
4
5
6
7
8
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);
});