passwordHash.js 182 Bytes Raw Blame History Permalink 1 2 3 4 5 var crypto = require('crypto'); var mysalt = "fastcampus"; module.exports = function(password){ return crypto.createHash('sha512').update( password + mysalt).digest('base64'); };