comment générer un sel aléatoire dans les nodejs
var buf = crypto.randomBytes(16);
Black Bird
var buf = crypto.randomBytes(16);
const crypto = require('crypto');
console.log(crypto.randomBytes(16).toString('hex')); //You can easily run it on terminal and copy the code.