Ekoduj hasło JavaScript

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

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