passwordHash.js 182 Bytes
var crypto = require('crypto');
var mysalt = "fastcampus";
module.exports = function(password){
    return crypto.createHash('sha512').update( password + mysalt).digest('base64');
};