Encoder le mot de passe javascript

const crypto = require('crypto') // Already installed in Node

const passwordHash = crypto.createHash('sha512').update(password + salt).digest('hex')
florinrelea