I'm using bcrypt with Node.js and the hash comes out different each time, even using the same salt. This is my code:
const bcrypt = require('bcrypt');
let saltRounds = 1;
let salt = bcrypt.genSaltSync(saltRounds);
let hash = bcrypt.hashSync('senha', salt);
console.log(hash);
What am I doing wrong? How to solve this?